Skip to content

Commit ac063d1

Browse files
committed
Zephyr ifdef
1 parent 1ed4442 commit ac063d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

supervisor/shared/safe_mode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "supervisor/shared/translate/translate.h"
1919
#include "supervisor/shared/tick.h"
2020

21-
#if __ZEPHYR__
21+
#ifdef __ZEPHYR__
2222
#include <zephyr/kernel.h>
2323
#endif
2424

@@ -104,7 +104,7 @@ void PLACE_IN_ITCM(safe_mode_on_next_reset)(safe_mode_t reason) {
104104
// Don't inline this so it's easy to break on it from GDB.
105105
void __attribute__((noinline, )) PLACE_IN_ITCM(reset_into_safe_mode)(safe_mode_t reason) {
106106
if (_safe_mode > SAFE_MODE_BROWNOUT && reason > SAFE_MODE_BROWNOUT) {
107-
#if __ZEPHYR__
107+
#ifdef __ZEPHYR__
108108
printk("Already in safe mode\n");
109109
printk("Reason: %d\n", reason);
110110
printk("Current safe mode: %d\n", _safe_mode);

0 commit comments

Comments
 (0)