From 6f914d79b12fc5f6a81132a3efc630e11296f02c Mon Sep 17 00:00:00 2001 From: Will Miles Date: Thu, 28 Aug 2025 21:17:12 -0400 Subject: [PATCH] Increase boot loop timeout Any repeating crash that prevents a human from logging in and fixing the config should be treated as a boot loop. Increase the detection timeout, so anything that's fast enough to preclude a user fix will trigger the recovery behaviour. --- wled00/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/util.cpp b/wled00/util.cpp index 0d5d7373..e1b4830c 100644 --- a/wled00/util.cpp +++ b/wled00/util.cpp @@ -720,7 +720,7 @@ void *realloc_malloc(void *ptr, size_t size) { // checks if the ESP reboots multiple times due to a crash or watchdog timeout // if a bootloop is detected: restore settings from backup, then reset settings, then switch boot image (and repeat) -#define BOOTLOOP_INTERVAL_MILLIS 5000 // time limit between crashes: 5 seconds +#define BOOTLOOP_INTERVAL_MILLIS 120000 // time limit between crashes: 120 seconds (2 minutes) #define BOOTLOOP_THRESHOLD 5 // number of consecutive crashes to trigger bootloop detection #define BOOTLOOP_ACTION_RESTORE 0 // default action: restore config from /bkp.cfg.json #define BOOTLOOP_ACTION_RESET 1 // if restore does not work, reset config (rename /cfg.json to /rst.cfg.json)