Skip to content

Commit ef5aadb

Browse files
committed
RP2350: always wake from dormant for AON-alarm
1 parent 5168276 commit ef5aadb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ports/raspberrypi/common-hal/alarm/time/TimeAlarm.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ void alarm_time_timealarm_set_alarms(bool deep_sleep, size_t n_alarms, const mp_
108108
// also see note above regarding aon_timer_get_time, also true here
109109
t.tv_sec = alarm_seconds;
110110
DEBUG_PRINT("alarm_seconds: %d", t.tv_sec);
111+
#ifdef PICO_RP2040
111112
aon_timer_enable_alarm(&t, &timer_callback, deep_sleep);
113+
#else
114+
aon_timer_enable_alarm(&t, &timer_callback, true);
115+
#endif
112116
woke_up = false;
113117
}
114118

0 commit comments

Comments
 (0)