queue_try_add_ignoring_errors(&queue, &e);
}
-void set_send_alarm(int alarm, uint32_t now, uint32_t next_act_time) {
+void set_resend_alarm(int alarm, uint32_t now, uint32_t next_act_time) {
uint32_t sleep_duration = next_act_time - now;
if (hardware_alarm_set_target(alarm,
make_timeout_time_ms(sleep_duration * 1000)))
if (act_time == -1)
return;
if (act_time > now) {
- set_send_alarm(alarm, now, act_time);
+ set_resend_alarm(alarm, now, act_time);
return;
}
pheap_node_id_t i = ph_remove_head(sleeps_heap, false);