mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
evtimer: in evtimer_print also print first event
This commit is contained in:
parent
629e96ea80
commit
d2cd666841
@ -209,10 +209,11 @@ void evtimer_init(evtimer_t *evtimer, evtimer_callback_t handler)
|
||||
void evtimer_print(const evtimer_t *evtimer)
|
||||
{
|
||||
evtimer_event_t *list = evtimer->events;
|
||||
int nr = 0;
|
||||
|
||||
while (list->next) {
|
||||
evtimer_event_t *list_entry = list->next;
|
||||
printf("ev offset=%u\n", (unsigned)list_entry->offset);
|
||||
while (list) {
|
||||
nr++;
|
||||
printf("ev #%d offset=%u\n", nr, (unsigned)list->offset);
|
||||
list = list->next;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user