timer_lowerhalf: minor improvements

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko
2022-03-14 22:06:52 +01:00
committed by Xiang Xiao
parent b6bc460b2c
commit b04447d066
16 changed files with 56 additions and 85 deletions
+1 -1
View File
@@ -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;