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

cleanup reset code #23

Merged
merged 1 commit into from
Dec 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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