mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
timer_lowerhalf: minor improvements
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
committed by
Xiang Xiao
parent
b6bc460b2c
commit
b04447d066
@@ -291,7 +291,7 @@ static int bm3803_getstatus(FAR struct timer_lowerhalf_s *lower,
|
||||
|
||||
/* Get the time remaining until the timer expires (in microseconds) */
|
||||
|
||||
clock_factor = (clock == 1000000)? 1: (clock / 1000000);
|
||||
clock_factor = (clock == 1000000) ? 1 : (clock / 1000000);
|
||||
status->timeleft = (timeout - BM3803_TIM_GETCOUNTER(priv->tim)) *
|
||||
clock_factor;
|
||||
return OK;
|
||||
|
||||
Reference in New Issue
Block a user