sys: xtimer: disable timer before shooting in isr handler

dev/timer
Kaspar Schleiser 8 years ago
parent 691fe95546
commit a0d78cf989

@ -452,12 +452,18 @@ overflow:
/* make sure we don't fire too early */
while (_time_left(_mask(timer_list_head->target), 0));
xtimer_t *next = timer_list_head->next;
/* pick first timer in list */
xtimer_t *timer = timer_list_head;
_shoot(timer_list_head);
/* advance list */
timer_list_head = timer->next;
/* make sure timer is recognized as being already fired */
timer->target = 0;
timer->long_target = 0;
/* advance to next timer in list */
timer_list_head = next;
/* fire timer */
_shoot(timer);
}
/* possibly executing all callbacks took enough

Loading…
Cancel
Save