Skip to content

Commit f0182eb

Browse files
DedeHainetmindz
authored andcommitted
safety check for bootloop action tracker: bring it back on track if out of bounds
1 parent 2acf731 commit f0182eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wled00/util.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,8 @@ static bool detectBootLoop() {
896896
bl_crashcounter++;
897897
if (bl_crashcounter >= BOOTLOOP_THRESHOLD) {
898898
DEBUG_PRINTLN(F("!BOOTLOOP DETECTED!"));
899-
bl_crashcounter = 0;
899+
bl_crashcounter = 0;
900+
if(bl_actiontracker > BOOTLOOP_ACTION_DUMP) bl_actiontracker = BOOTLOOP_ACTION_RESTORE; // reset action tracker if out of bounds
900901
result = true;
901902
}
902903
} else {

0 commit comments

Comments
 (0)