ESP8266: Fix partial erase of connection settings (#1150)

* Fix partial erase of connection settings

#1149

* Update WM version and add disconnect
This commit is contained in:
Florian authored and GitHub committed 2022-01-27 15:47:55 -06:00
1 parent a9342f743f
commit ef41546c94
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -1047,7 +1047,8 @@ void eraseAndRestart() {
Log.trace(F("Formatting requested, result: %d" CR), SPIFFS.format());
# if defined(ESP8266)
SPIFFS.format();
WiFi.disconnect(true);
wifiManager.resetSettings();
delay(5000);
ESP.reset();
# else