Small bug fix for stm32 lower half timer driver

This commit is contained in:
Wail Khemir 2015-11-20 18:16:39 -05:00
parent efb8d31af6
commit 702368fce4
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{