Merged in wail007/arch (pull request #35)
Small bug fix for stm32 lower half timer driver
This commit is contained in:
commit
0ed9c6496b
@ -522,9 +522,9 @@ static int stm32_timer_handler(struct stm32_lowerhalf_s *lower)
|
|||||||
STM32_TIM_ACKINT(lower->tim, 0);
|
STM32_TIM_ACKINT(lower->tim, 0);
|
||||||
|
|
||||||
uint32_t next_interval_us = 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)
|
if (next_interval_us > 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user