Browse Source

oneshot:trigger exit early in no chan in oneshot

sbg
David Sidrane 8 years ago committed by Lorenz Meier
parent
commit
b885fd97f6
  1. 3
      src/drivers/stm32/drv_io_timer.c

3
src/drivers/stm32/drv_io_timer.c

@ -478,6 +478,8 @@ static inline void io_timer_set_PWM_mode(unsigned timer) @@ -478,6 +478,8 @@ static inline void io_timer_set_PWM_mode(unsigned timer)
void io_timer_trigger(void)
{
int oneshots = io_timer_get_mode_channels(IOTimerChanMode_OneShot);
if (oneshots != 0) {
uint32_t action_cache[MAX_IO_TIMERS] = {0};
int actions = 0;
@ -503,6 +505,7 @@ void io_timer_trigger(void) @@ -503,6 +505,7 @@ void io_timer_trigger(void)
px4_leave_critical_section(flags);
}
}
int io_timer_init_timer(unsigned timer)
{

Loading…
Cancel
Save