fix reboot device after WiFi portal configure timeout.

This commit is contained in:
Phat Nguyen committed 2024-06-05 19:01:25 +07:00
1 parent 2ae90444bb
commit da323b1a46
3 files changed
+19 -4

No files matched your search

+6 -4
View File
@@ -242,10 +242,12 @@ void setup() {
ledBarEnabledUpdate();
}
} else {
oledDisplay.showRebooting();
delay(2500);
oledDisplay.setText("", "", "");
ESP.restart();
if (wifiConnector.isConfigurePorttalTimeout()) {
oledDisplay.showRebooting();
delay(2500);
oledDisplay.setText("", "", "");
ESP.restart();
}
}
}
}