From 702368fce42e8d0684390804cb316b054d23b32e Mon Sep 17 00:00:00 2001 From: Wail Khemir Date: Fri, 20 Nov 2015 18:16:39 -0500 Subject: [PATCH] Small bug fix for stm32 lower half timer driver --- arch/arm/src/stm32/stm32_tim_lowerhalf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {