We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ed4442 commit ac063d1Copy full SHA for ac063d1
supervisor/shared/safe_mode.c
@@ -18,7 +18,7 @@
18
#include "supervisor/shared/translate/translate.h"
19
#include "supervisor/shared/tick.h"
20
21
-#if __ZEPHYR__
+#ifdef __ZEPHYR__
22
#include <zephyr/kernel.h>
23
#endif
24
@@ -104,7 +104,7 @@ void PLACE_IN_ITCM(safe_mode_on_next_reset)(safe_mode_t reason) {
104
// Don't inline this so it's easy to break on it from GDB.
105
void __attribute__((noinline, )) PLACE_IN_ITCM(reset_into_safe_mode)(safe_mode_t reason) {
106
if (_safe_mode > SAFE_MODE_BROWNOUT && reason > SAFE_MODE_BROWNOUT) {
107
- #if __ZEPHYR__
+ #ifdef __ZEPHYR__
108
printk("Already in safe mode\n");
109
printk("Reason: %d\n", reason);
110
printk("Current safe mode: %d\n", _safe_mode);
0 commit comments