add resetsetting delay, some complaints its not working shrug

This commit is contained in:
tablatronix
2022-03-29 14:46:42 -05:00
parent 9cd81e3af9
commit 918e02ddfd
+3 -2
View File
@@ -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);