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:
@@ -804,7 +804,11 @@ static bool detectBootLoop() {
|
|||||||
bl_crashcounter = 0;
|
bl_crashcounter = 0;
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
|
// Reset counter on long intervals to track only consecutive short-interval crashes
|
||||||
|
bl_crashcounter = 0;
|
||||||
|
// TODO: crash reporting goes here
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user