Skip to content

Commit

Permalink
Remove some (I think) unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussy committed Mar 4, 2020
1 parent e602170 commit ef7624f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wifi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ void doWiFi(bool ignore = false) { // Handle WiFi and optionally ignore current
digitalWrite(LED, HIGH); // Turn off LED

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
// Log.notice(F("Saving configuration." CR));
// _delay(2000);
// Log.notice(F("Restarting." CR));
// ESP.restart(); // If we don't reset, it hangs connecting to AP
}

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

0 comments on commit ef7624f

Please sign in to comment.