Skip to content

Commit

Permalink
fixed wifi checking when lost network
Browse files Browse the repository at this point in the history
  • Loading branch information
andysheen committed Sep 24, 2020
1 parent 1dc2a01 commit 271e77e
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 271e77e

Please sign in to comment.