Reset crash counter after long interval

Don't treat consecutive but infrequent crashes as bootloops.  The
bootloop recovery actions only make sense when there is no opportunity
for a user to reconfigure their system.

Suggested by @coderabbitai
This commit is contained in:
Will Miles
2025-08-28 21:10:20 -04:00
parent 46f3bc0ced
commit dd13c2df47

View File

@@ -804,7 +804,11 @@ static bool detectBootLoop() {
bl_crashcounter = 0;
result = true;
}
}
} else {
// Reset counter on long intervals to track only consecutive short-interval crashes
bl_crashcounter = 0;
// TODO: crash reporting goes here
}
break;
}