Skip to content

Commit

Permalink
Add reset after saving credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussy committed Feb 23, 2020
1 parent 4ac298c commit 0e7311e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wifi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ void doWiFi(bool ignore = false) { // Handle WiFi and optionally ignore current

if (shouldSaveConfig) { // Save configuration
Log.notice(F("Saving configuration." CR));
_delay(2000);
Log.notice(F("Resetting." CR));
ESP.restart(); // If we don't reset, it hangs connecting to AP
}

WiFi.hostname(config->hostname);
Expand Down

0 comments on commit 0e7311e

Please sign in to comment.