Skip to content

Commit 917734b

Browse files
committed
The SERIAL_RX_PULLUP_PIN fix/hack is no longer needed
We no longer need to explicitly pull up the serial read pin on boards that are based on the Huzzah ESP32 breakout board as the core now sets things up correctly. Also override the upload command for the OpenEVSE WiFi board to use curl to upload via the HTTP upload, this is a lot more reliable for that board
1 parent c5eae59 commit 917734b

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

platformio.ini

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ build_flags =
177177
-D WIFI_BUTTON_PRESSED_STATE=LOW
178178
-D RAPI_PORT=Serial
179179
-D DEBUG_PORT=Serial2
180-
-D SERIAL_RX_PULLUP_PIN=3
181180

182181
[env:openevse_huzzah32]
183182
board = featheresp32
@@ -191,7 +190,6 @@ build_flags =
191190
-D WIFI_BUTTON_PRESSED_STATE=LOW
192191
-D RAPI_PORT=Serial
193192
-D DEBUG_PORT=Serial2
194-
-D SERIAL_RX_PULLUP_PIN=3
195193

196194
[env:openevse_featheresp32]
197195
board = featheresp32
@@ -223,12 +221,12 @@ build_flags =
223221
-D WIFI_BUTTON_PRESSED_STATE=LOW
224222
-D RAPI_PORT=Serial
225223
-D DEBUG_PORT=Serial1
226-
-D SERIAL_RX_PULLUP_PIN=3
227224
-D I2C_SDA=21
228225
-D I2C_SCL=22
229226
-D ENABLE_MCP9808
230227
-D ENABLE_PN532
231228
-D TX1=16
229+
upload_command = curl -F firmware=@$SOURCE http://$UPLOAD_PORT/update --progress-bar | cat
232230

233231
[env:openevse_esp32-gateway]
234232
#For hardware older than RevE

src/main.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,6 @@ void event_send(JsonDocument &event)
265265
void hardware_setup()
266266
{
267267
debug_setup();
268-
269-
#ifdef SERIAL_RX_PULLUP_PIN
270-
// https://forums.adafruit.com/viewtopic.php?f=57&t=153553&p=759890&hilit=esp32+serial+pullup#p769168
271-
pinMode(SERIAL_RX_PULLUP_PIN, INPUT_PULLUP);
272-
#endif
273-
274268
enableLoopWDT();
275269
}
276270

0 commit comments

Comments
 (0)