1
0
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:
Kees Bakker 2019-01-06 22:05:06 +01:00 committed by Kees Bakker
parent 629e96ea80
commit d2cd666841

View File

@ -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;
}
}