mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-22 10:42:10 +10:00
add resetsetting delay, some complaints its not working shrug
This commit is contained in:
+3
-2
@@ -2510,9 +2510,10 @@ void WiFiManager::resetSettings() {
|
|||||||
DEBUG_WM(F("resetSettings"));
|
DEBUG_WM(F("resetSettings"));
|
||||||
#endif
|
#endif
|
||||||
WiFi_enableSTA(true,true); // must be sta to disconnect erase
|
WiFi_enableSTA(true,true); // must be sta to disconnect erase
|
||||||
|
delay(500); // ensure sta is enabled
|
||||||
if (_resetcallback != NULL)
|
if (_resetcallback != NULL){
|
||||||
_resetcallback();
|
_resetcallback();
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef ESP32
|
#ifdef ESP32
|
||||||
WiFi.disconnect(true,true);
|
WiFi.disconnect(true,true);
|
||||||
|
|||||||
Reference in New Issue
Block a user