From ebacfbed02920bd79ceb9a076bed7691f74e4d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Ha=C3=9Fel?= Date: Thu, 16 Jan 2025 11:49:46 +0100 Subject: [PATCH] BOOT_DELAY_SECONDS 3 --- src/patrix/boot.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/patrix/boot.cpp b/src/patrix/boot.cpp index 68c92bd..fa5b6dd 100644 --- a/src/patrix/boot.cpp +++ b/src/patrix/boot.cpp @@ -4,6 +4,8 @@ #include "clock.h" #include "log.h" +#define BOOT_DELAY_SECONDS 3 + void bootDelay() { info("Waiting for WiFi..."); while (!isWiFiConnected()) { @@ -18,9 +20,9 @@ void bootDelay() { yield(); } - info("Waiting 5 seconds for OTA update..."); + info("Waiting %d seconds for OTA update...", BOOT_DELAY_SECONDS); const auto start = millis(); - while (millis() - start < 5000) { + while (millis() - start < BOOT_DELAY_SECONDS * 1000) { wifiLoop(); yield(); }