safety check for bootloop action tracker: bring it back on track if out of bounds

This commit is contained in:
Damian Schneider
2025-10-09 22:08:18 +02:00
parent 91fdb5822b
commit 7f1f986f13

View File

@@ -897,6 +897,7 @@ static bool detectBootLoop() {
if (bl_crashcounter >= BOOTLOOP_THRESHOLD) {
DEBUG_PRINTLN(F("!BOOTLOOP DETECTED!"));
bl_crashcounter = 0;
if(bl_actiontracker > BOOTLOOP_ACTION_DUMP) bl_actiontracker = BOOTLOOP_ACTION_RESTORE; // reset action tracker if out of bounds
result = true;
}
} else {