mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-05 14:28:46 +05:00
fix: memory leak on esp32 fixed
This commit is contained in:
1 parent
86734ab622
commit
ab1566bd45
1 file changed
+5
@@ -181,7 +181,12 @@ namespace Network {
|
|||||||
wifi_station_dhcpc_set_maxtry(5);
|
wifi_station_dhcpc_set_maxtry(5);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef ARDUINO_ARCH_ESP32
|
||||||
|
// Nothing. Because memory leaks when turn off WiFi on ESP32, bug?
|
||||||
|
return true;
|
||||||
|
#else
|
||||||
return WiFi.mode(WIFI_OFF);
|
return WiFi.mode(WIFI_OFF);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void reconnect() {
|
void reconnect() {
|
||||||
|
|||||||
Reference in new issue
Block a user