Skip to content

Commit

Permalink
feat: add small delay before restart
Browse files Browse the repository at this point in the history
Co-authored-by: Ken Stanley <[email protected]>
  • Loading branch information
d42ohpaz and kstanley-UNCC authored Feb 18, 2021
1 parent 5eae327 commit 91fec25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ void ConfigManager::handleAPPost() {
storeWifiSettings(ssid, password);

server->send(204, FPSTR(mimePlain), F("Saved. Will attempt to reboot."));
delay(500); // Allow enough time for the response to be sent before restarting.

ESP.restart();
}
Expand Down

0 comments on commit 91fec25

Please sign in to comment.