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 #if !BOOT_DELAY
return; return;
#endif #endif
info("BOOT DELAY", "BOOT DELAY: Waiting for WiFi..."); info("BOOT DELAY: Waiting for WiFi...");
while ((uint32_t) WiFi.localIP() == 0) { while ((uint32_t) WiFi.localIP() == 0) {
consoleLoop(); consoleLoop();
wifiLoop(); wifiLoop();
} }
info("BOOT DELAY", "BOOT DELAY: WiFi connected!"); info("BOOT DELAY: WiFi connected!");
info("BOOT DELAY", "BOOT DELAY: Waiting 10 seconds..."); info("BOOT DELAY: Waiting 10 seconds...");
unsigned long bootDelayBegin = millis(); unsigned long bootDelayBegin = millis();
while (millis() - bootDelayBegin < BOOT_DELAY_MS) { while (millis() - bootDelayBegin < BOOT_DELAY_MS) {
consoleLoop(); consoleLoop();
wifiLoop(); wifiLoop();
} }
info("BOOT DELAY", "BOOT DELAY: Complete!"); info("BOOT DELAY: Complete!");
info("BOOT DELAY", "BOOT DELAY: Resuming normal boot!"); info("BOOT DELAY: Resuming normal boot!");
} }
void wifiLoop() { void wifiLoop() {