Skip to content

Commit

Permalink
Merge pull request #34 from andysheen/master
Browse files Browse the repository at this point in the history
fixed wifi checking when lost network
  • Loading branch information
andysheen authored Sep 24, 2020
2 parents 1dc2a01 + 271e77e commit 3a0e8d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ESP32-SOCKETIO.ino
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ void loop() {
wifiCheck();
break;
}

buttonBuiltIn.check();
buttonExternal.check();
buttonTouch.check();
Expand Down
2 changes: 1 addition & 1 deletion wifi.ino
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ String checkSsidForSpelling(String incomingSSID) {
}

void wifiCheck() {
if (wificheckMillis - millis() > wifiCheckTime) {
if (millis() - wificheckMillis > wifiCheckTime) {
wificheckMillis = millis();
if (wifiMulti.run() != WL_CONNECTED) {
digitalWrite(LED_BUILTIN, 1);
Expand Down

0 comments on commit 3a0e8d0

Please sign in to comment.