diff --git a/sched/timer/timer_gettime.c b/sched/timer/timer_gettime.c index 33b79d2d47..dfa66a962e 100644 --- a/sched/timer/timer_gettime.c +++ b/sched/timer/timer_gettime.c @@ -86,7 +86,7 @@ int timer_gettime(timer_t timerid, FAR struct itimerspec *value) /* Convert that to a struct timespec and return it */ clock_ticks2time(ticks, &value->it_value); - clock_ticks2time(timer->pt_last, &value->it_interval); + clock_ticks2time(timer->pt_delay, &value->it_interval); return OK; }