Skip to content

Commit

Permalink
Undo
Browse files Browse the repository at this point in the history
  • Loading branch information
DTTerastar committed Sep 6, 2022
1 parent 189a294 commit 1073cb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AsyncWiFiSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,8 @@ bool AsyncWiFiSettingsClass::connect(bool portal, int wait_seconds) {
unsigned long starttime = millis();
unsigned long lastbegin = starttime;
while (status != WL_CONNECTED) {
// Reconnect if "disconnected" or every 60 seconds
if (status == WL_DISCONNECTED || millis() - lastbegin > 60000) {
// Reconnect every 60 seconds
if (millis() - lastbegin > 60000) {
lastbegin = millis();
Serial.print("*");
WiFi.disconnect(true, true);
Expand Down

0 comments on commit 1073cb3

Please sign in to comment.