Skip to content

Commit 1df9943

Browse files
committed
Commenting out workarounds for Arduino bug...
- ...fixed in 2.4.2 - Original Issue was: esp8266/Arduino#4497
1 parent f10d5f6 commit 1df9943

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

software/esp-firmware/arduino_main_sketch.ino/clockHandling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ void clockHandler(void)
228228
else
229229
{
230230
// the following line is a workaround for a memory leak bug in arduino 2.4.0/2.4.1: https://github.com/esp8266/Arduino/issues/4497
231-
client = WiFiClient();
231+
// not required anymore on 2.4.2 client = WiFiClient();
232232
client.connect(clockServer.name, clockServer.port);
233233
}
234234
}

software/esp-firmware/arduino_main_sketch.ino/locoHandling.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
locoInfo locos[4];
2929
bool locoActive = false;
3030

31-
bool locoRunning[4];
31+
// bool locoRunning[4];
3232

3333
bool inputState[4];
3434
bool inputChanged[4];
@@ -132,7 +132,7 @@ void locoHandler(void)
132132
;
133133
client.stop();
134134
// the following line is a workaround for a memory leak bug in arduino 2.4.0/2.4.1: https://github.com/esp8266/Arduino/issues/4497
135-
client = WiFiClient();
135+
// not required any more in 2.4.2 client = WiFiClient();
136136
client.setTimeout(1000);
137137
if (client.connect(locoServer.name, locoServer.port))
138138
{

0 commit comments

Comments
 (0)