BOOT DELAY log fix
This commit is contained in:
parent
da9e610d85
commit
d650c921ce
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user