mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
sched/timer: get the previous reload value correctly
Change-Id: I312d3ee74753441793f9505e168e449af3ab2c37 Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -238,7 +238,7 @@ int timer_settime(timer_t timerid, int flags,
|
||||
/* Convert that to a struct timespec and return it */
|
||||
|
||||
clock_ticks2time(delay, &ovalue->it_value);
|
||||
clock_ticks2time(timer->pt_last, &ovalue->it_interval);
|
||||
clock_ticks2time(timer->pt_delay, &ovalue->it_interval);
|
||||
}
|
||||
|
||||
/* Disarm the timer (in case the timer was already armed when
|
||||
|
||||
Reference in New Issue
Block a user