fix reboot device after WiFi portal configure timeout.

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

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();
}
}
}
}