From 7f1f986f133c774f4b9992ad36ae4e179c64eb40 Mon Sep 17 00:00:00 2001 From: Damian Schneider Date: Thu, 9 Oct 2025 22:08:18 +0200 Subject: [PATCH] safety check for bootloop action tracker: bring it back on track if out of bounds --- wled00/util.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wled00/util.cpp b/wled00/util.cpp index 8aaaf34c..ca577120 100644 --- a/wled00/util.cpp +++ b/wled00/util.cpp @@ -896,7 +896,8 @@ static bool detectBootLoop() { bl_crashcounter++; if (bl_crashcounter >= BOOTLOOP_THRESHOLD) { DEBUG_PRINTLN(F("!BOOTLOOP DETECTED!")); - bl_crashcounter = 0; + bl_crashcounter = 0; + if(bl_actiontracker > BOOTLOOP_ACTION_DUMP) bl_actiontracker = BOOTLOOP_ACTION_RESTORE; // reset action tracker if out of bounds result = true; } } else {