use restart instead of reset
1 files changed, 3 insertions(+), 3 deletions(-)

M src/main.cpp
M src/main.cpp +3 -3
@@ 94,7 94,7 @@ void resetEverything() {
     WiFi.persistent(false);
 
     delay(250);
-    ESP.reset();
+    ESP.restart();
     delay(5000);
 }
 

          
@@ 125,7 125,7 @@ void writeStringToEEPROM(int addrOffset,
 
 String readStringFromEEPROM(int addrOffset)
 {
-    uint8_t newStrLen;
+    uint8_t newStrLen = 0;
     Serial.println("reading a string from eeprom");
     EEPROM.get(addrOffset, newStrLen);
 

          
@@ 206,7 206,7 @@ void setup() {
  if (!wifiManager.autoConnect(ssid.c_str(), NULL)) {
         DEBUG("WifiManager: failed to connect, we should reset as see if it connects");
         delay(3000);
-        ESP.reset();
+        ESP.restart();
         delay(5000);
     }
     blink(MEDIUM, 2);