diff --git a/arch/arm/src/stm32/stm32_tim_lowerhalf.c b/arch/arm/src/stm32/stm32_tim_lowerhalf.c index 645e1d7083..75a1835c57 100644 --- a/arch/arm/src/stm32/stm32_tim_lowerhalf.c +++ b/arch/arm/src/stm32/stm32_tim_lowerhalf.c @@ -522,9 +522,9 @@ static int stm32_timer_handler(struct stm32_lowerhalf_s *lower) STM32_TIM_ACKINT(lower->tim, 0); uint32_t next_interval_us = 0; - int ret = (*lower->handlerUsr)(&next_interval_us); + bool ret = (*lower->handlerUsr)(&next_interval_us); - if (ret == OK) + if (ret == true) { if (next_interval_us > 0) {