Update timer_gettime.c
fix a bug :change the timer->pt_last to timer->pt_delay,
This commit is contained in:
parent
63b3737b77
commit
f07067dc9d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user