File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
ports/nrf/common-hal/microcontroller Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -138,12 +138,14 @@ mcu_reset_reason_t common_hal_mcu_processor_get_reset_reason(void) {
138
138
r = RESET_REASON_WATCHDOG ;
139
139
} else if (reset_reason_saved & POWER_RESETREAS_SREQ_Msk ) {
140
140
r = RESET_REASON_SOFTWARE ;
141
+ #if CIRCUITPY_ALARM
141
142
// Our "deep sleep" is still actually light sleep followed by a software
142
143
// reset. Adding this check here ensures we treat it as-if we're waking
143
144
// from deep sleep.
144
145
if (sleepmem_wakeup_event != SLEEPMEM_WAKEUP_BY_NONE ) {
145
146
r = RESET_REASON_DEEP_SLEEP_ALARM ;
146
147
}
148
+ #endif
147
149
} else if ((reset_reason_saved & POWER_RESETREAS_OFF_Msk ) ||
148
150
(reset_reason_saved & POWER_RESETREAS_LPCOMP_Msk ) ||
149
151
(reset_reason_saved & POWER_RESETREAS_NFC_Msk ) ||
You can’t perform that action at this time.
0 commit comments