mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +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"));
|
||||
#endif
|
||||
WiFi_enableSTA(true,true); // must be sta to disconnect erase
|
||||
|
||||
if (_resetcallback != NULL)
|
||||
delay(500); // ensure sta is enabled
|
||||
if (_resetcallback != NULL){
|
||||
_resetcallback();
|
||||
}
|
||||
|
||||
#ifdef ESP32
|
||||
WiFi.disconnect(true,true);
|
||||
|
||||
Reference in New Issue
Block a user