summaryrefslogtreecommitdiff
path: root/supervisor/shared/safe_mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'supervisor/shared/safe_mode.c')
-rw-r--r--supervisor/shared/safe_mode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/supervisor/shared/safe_mode.c b/supervisor/shared/safe_mode.c
index 9032e4045..b37b38e08 100644
--- a/supervisor/shared/safe_mode.c
+++ b/supervisor/shared/safe_mode.c
@@ -28,7 +28,9 @@
#include "mphalport.h"
+#if defined(MICROPY_HW_LED_STATUS) || defined(CIRCUITPY_BOOT_BUTTON)
#include "shared-bindings/digitalio/DigitalInOut.h"
+#endif
#include "shared-bindings/microcontroller/Processor.h"
#include "shared-bindings/microcontroller/ResetReason.h"