BOOT DELAY log fix

This commit is contained in:
Patrick Haßel 2024-04-10 16:04:09 +02:00
parent da9e610d85
commit d650c921ce

View File

@ -109,20 +109,20 @@ void bootDelay() {
#if !BOOT_DELAY
return;
#endif
info("BOOT DELAY", "BOOT DELAY: Waiting for WiFi...");
info("BOOT DELAY: Waiting for WiFi...");
while ((uint32_t) WiFi.localIP() == 0) {
consoleLoop();
wifiLoop();
}
info("BOOT DELAY", "BOOT DELAY: WiFi connected!");
info("BOOT DELAY", "BOOT DELAY: Waiting 10 seconds...");
info("BOOT DELAY: WiFi connected!");
info("BOOT DELAY: Waiting 10 seconds...");
unsigned long bootDelayBegin = millis();
while (millis() - bootDelayBegin < BOOT_DELAY_MS) {
consoleLoop();
wifiLoop();
}
info("BOOT DELAY", "BOOT DELAY: Complete!");
info("BOOT DELAY", "BOOT DELAY: Resuming normal boot!");
info("BOOT DELAY: Complete!");
info("BOOT DELAY: Resuming normal boot!");
}
void wifiLoop() {