Skip to content

Commit

Permalink
RP2350: always wake from dormant for AON-alarm
Browse files Browse the repository at this point in the history
  • Loading branch information
bablokb committed Jan 24, 2025
1 parent 5168276 commit ef5aadb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ports/raspberrypi/common-hal/alarm/time/TimeAlarm.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ void alarm_time_timealarm_set_alarms(bool deep_sleep, size_t n_alarms, const mp_
// also see note above regarding aon_timer_get_time, also true here
t.tv_sec = alarm_seconds;
DEBUG_PRINT("alarm_seconds: %d", t.tv_sec);
#ifdef PICO_RP2040
aon_timer_enable_alarm(&t, &timer_callback, deep_sleep);
#else
aon_timer_enable_alarm(&t, &timer_callback, true);
#endif
woke_up = false;
}

Expand Down

0 comments on commit ef5aadb

Please sign in to comment.