[WM] enable automatic erasing of configuration for ESP8266
This commit is contained in:
1 parent
31ce9680c9
commit
85517e842b
1 file changed
+3
-1
+3
-1
@@ -778,9 +778,11 @@ void eraseAndRestart()
|
|||||||
WiFi.disconnect(true, true);
|
WiFi.disconnect(true, true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Log.trace(F("Formatting requested, result: %d" CR),SPIFFS.format());
|
Log.trace(F("Formatting requested, result: %d" CR), SPIFFS.format());
|
||||||
|
|
||||||
#if defined(ESP8266)
|
#if defined(ESP8266)
|
||||||
|
ESP.eraseConfig();
|
||||||
|
delay(5000);
|
||||||
ESP.reset();
|
ESP.reset();
|
||||||
#else
|
#else
|
||||||
ESP.restart();
|
ESP.restart();
|
||||||
|
|||||||
Reference in new issue
Block a user