[WM] enable automatic erasing of configuration for ESP8266

This commit is contained in:
Florian committed 2020-02-12 21:48:21 +01:00
1 parent 31ce9680c9
commit 85517e842b
1 file changed
+3 -1
+3 -1
View File
@@ -778,9 +778,11 @@ void eraseAndRestart()
WiFi.disconnect(true, true);
#endif
Log.trace(F("Formatting requested, result: %d" CR),SPIFFS.format());
Log.trace(F("Formatting requested, result: %d" CR), SPIFFS.format());
#if defined(ESP8266)
ESP.eraseConfig();
delay(5000);
ESP.reset();
#else
ESP.restart();