Merge pull request #172 from airgradienthq/hotfix/display-show-rebooting-but-not-rebooting

[Fix] Reboot device after WiFi Configure porttal timeout
This commit is contained in:
Phat Nguyen
2024-06-06 13:11:33 +07:00
committed by GitHub
3 changed files with 19 additions and 2 deletions

View File

@ -232,8 +232,12 @@ void setup() {
ledBarEnabledUpdate();
}
} else {
oledDisplay.showRebooting();
delay(2500);
if (wifiConnector.isConfigurePorttalTimeout()) {
oledDisplay.showRebooting();
delay(2500);
oledDisplay.setText("", "", "");
ESP.restart();
}
}
}
}