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
2022-01-27 15:47:55 -06:00
committed by GitHub
parent a9342f743f
commit ef41546c94
2 changed files with 3 additions and 2 deletions

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

View File

@@ -112,7 +112,7 @@ ahtx0 = Adafruit AHTX0
ina226 = https://github.com/jarzebski/Arduino-INA226.git#968a684
a6lib = https://github.com/h2zero/A6lib
wifimanager32 = https://github.com/tzapu/WiFiManager.git#c3ff582
wifimanager8266 = https://github.com/tzapu/WiFiManager.git#0.16.0
wifimanager8266 = https://github.com/tzapu/WiFiManager.git#2.0.5-beta
ethernet = Ethernet
esp8266_mdns = esp8266_mdns
wire = Wire