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