Add and expose sanitizing logic

This commit is contained in:
jpirnay committed 2026-03-08 15:51:05 +01:00
1 parent b9b60d31ba
commit c464bdede8
3 files changed
+13

No files matched your search

+4
View File
@@ -76,6 +76,10 @@ void begin() {
// `clearPanic()` to clear it after dumping
if (!isRebootFromPanic()) {
clearPanic();
} else {
// Panic reboot: preserve logs and panic info, but clamp logHead in case the
// panic occurred before begin() ever ran (e.g. in a static constructor).
sanitizeLogHead();
}
}