Update timer_gettime.c

fix a bug :change the timer->pt_last to timer->pt_delay,
This commit is contained in:
yanyunyouyou 2020-04-24 18:24:01 +08:00 committed by Xiang Xiao
parent 63b3737b77
commit f07067dc9d

View File

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