Skip to content

Commit

Permalink
remove incorrect repeating_timer assertion, which fails if the timer …
Browse files Browse the repository at this point in the history
…fires during creation
  • Loading branch information
kilograham committed Aug 29, 2023
1 parent f85d679 commit f593e46
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/common/pico_time/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@ static void alarm_pool_dump_key(pheap_node_id_t id, void *user_data) {

static int64_t repeating_timer_callback(__unused alarm_id_t id, void *user_data) {
repeating_timer_t *rt = (repeating_timer_t *)user_data;
assert(rt->alarm_id == id);
if (rt->callback(rt)) {
return rt->delay_us;
} else {
Expand Down

0 comments on commit f593e46

Please sign in to comment.