Skip to content

Commit a9d1453

Browse files
authored
Merge pull request #1604 from UltimateHackingKeyboard/fix_crashdump_flush
Flush the crash log.
2 parents 76ae911 + e68464c commit a9d1453

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

device/src/shell/sinks.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "macros/status_buffer.h"
44
#include "trace.h"
55
#include "config_manager.h"
6+
#include <zephyr/logging/log_ctrl.h>
67

78
bool ShellConfig_IsInPanicMode = false;
89

@@ -38,7 +39,12 @@ void ShellConfig_ActivatePanicMode(void)
3839

3940
MacroStatusBuffer_Validate();
4041
printk("===== PANIC =====\n");
42+
43+
while (log_process()) {}
44+
4145
Trace_Print(LogTarget_ErrorBuffer, "crash/panic");
46+
47+
while (log_process()) {}
4248
}
4349
}
4450

0 commit comments

Comments
 (0)