mirror of
https://github.com/apache/nuttx.git
synced 2025-12-12 13:55:18 +08:00
Update timer_gettime.c
fix a bug :change the timer->pt_last to timer->pt_delay,
This commit is contained in:
@@ -86,7 +86,7 @@ int timer_gettime(timer_t timerid, FAR struct itimerspec *value)
|
|||||||
/* Convert that to a struct timespec and return it */
|
/* Convert that to a struct timespec and return it */
|
||||||
|
|
||||||
clock_ticks2time(ticks, &value->it_value);
|
clock_ticks2time(ticks, &value->it_value);
|
||||||
clock_ticks2time(timer->pt_last, &value->it_interval);
|
clock_ticks2time(timer->pt_delay, &value->it_interval);
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user