Skip to content

Commit 6f914d7

Browse files
committed
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.
1 parent dd13c2d commit 6f914d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wled00/util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ void *realloc_malloc(void *ptr, size_t size) {
720720
// checks if the ESP reboots multiple times due to a crash or watchdog timeout
721721
// if a bootloop is detected: restore settings from backup, then reset settings, then switch boot image (and repeat)
722722

723-
#define BOOTLOOP_INTERVAL_MILLIS 5000 // time limit between crashes: 5 seconds
723+
#define BOOTLOOP_INTERVAL_MILLIS 120000 // time limit between crashes: 120 seconds (2 minutes)
724724
#define BOOTLOOP_THRESHOLD 5 // number of consecutive crashes to trigger bootloop detection
725725
#define BOOTLOOP_ACTION_RESTORE 0 // default action: restore config from /bkp.cfg.json
726726
#define BOOTLOOP_ACTION_RESET 1 // if restore does not work, reset config (rename /cfg.json to /rst.cfg.json)

0 commit comments

Comments
 (0)