Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #23 from hmueller01/reset_cleanup
Browse files Browse the repository at this point in the history
cleanup reset code
  • Loading branch information
khoih-prog authored Dec 23, 2022
2 parents 6e36702 + 385997a commit 86040e7
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/ESPAsync_WiFiManager_Lite.h
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,6 @@ class ESPAsync_WiFiManager_Lite
setForcedCP(false);

// Delay then reset the ESP8266 after save data
delay(1000);
resetFunc();
}

Expand All @@ -1169,7 +1168,6 @@ class ESPAsync_WiFiManager_Lite
setForcedCP(true);

// Delay then reset the ESP8266 after save data
delay(1000);
resetFunc();
}

Expand Down Expand Up @@ -2525,11 +2523,7 @@ class ESPAsync_WiFiManager_Lite
drd->loop();
#endif

#if ESP8266
ESP.reset();
#else
ESP.restart();
#endif
resetFunc();

#endif
}
Expand Down Expand Up @@ -2908,8 +2902,7 @@ class ESPAsync_WiFiManager_Lite

// TO DO : what command to reset
// Delay then reset the board after save data
delay(1000);
resetFunc(); //call reset
resetFunc();
}
} // if (server)
}
Expand Down

0 comments on commit 86040e7

Please sign in to comment.