mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 03:06:33 +00:00
Merge pull request #7802 from s-hadinger/wifi_disconnect
Remove code with no effect in WIFI disconnect
This commit is contained in:
commit
684de97f0f
@ -683,11 +683,11 @@ void WifiShutdown(bool option = false)
|
|||||||
// Enable from 6.0.0a until 6.1.0a - disabled due to possible cause of bad wifi connect on core 2.3.0
|
// Enable from 6.0.0a until 6.1.0a - disabled due to possible cause of bad wifi connect on core 2.3.0
|
||||||
// Re-enabled from 6.3.0.7 with ESP.restart replaced by ESP.reset
|
// Re-enabled from 6.3.0.7 with ESP.restart replaced by ESP.reset
|
||||||
// Courtesy of EspEasy
|
// Courtesy of EspEasy
|
||||||
WiFi.persistent(true); // use SDK storage of SSID/WPA parameters
|
// WiFi.persistent(true); // use SDK storage of SSID/WPA parameters
|
||||||
ETS_UART_INTR_DISABLE();
|
ETS_UART_INTR_DISABLE();
|
||||||
wifi_station_disconnect(); // this will store empty ssid/wpa into sdk storage
|
wifi_station_disconnect(); // this will store empty ssid/wpa into sdk storage
|
||||||
ETS_UART_INTR_ENABLE();
|
ETS_UART_INTR_ENABLE();
|
||||||
WiFi.persistent(false); // Do not use SDK storage of SSID/WPA parameters
|
// WiFi.persistent(false); // Do not use SDK storage of SSID/WPA parameters
|
||||||
}
|
}
|
||||||
delay(100); // Flush anything in the network buffers.
|
delay(100); // Flush anything in the network buffers.
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user