We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76ae911 commit e68464cCopy full SHA for e68464c
1 file changed
device/src/shell/sinks.c
@@ -3,6 +3,7 @@
3
#include "macros/status_buffer.h"
4
#include "trace.h"
5
#include "config_manager.h"
6
+#include <zephyr/logging/log_ctrl.h>
7
8
bool ShellConfig_IsInPanicMode = false;
9
@@ -38,7 +39,12 @@ void ShellConfig_ActivatePanicMode(void)
38
39
40
MacroStatusBuffer_Validate();
41
printk("===== PANIC =====\n");
42
+
43
+ while (log_process()) {}
44
45
Trace_Print(LogTarget_ErrorBuffer, "crash/panic");
46
47
48
}
49
50
0 commit comments