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
committed by Will Tatam
parent 2acf731baf
commit f0182eb1b2

View File

@@ -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 {