oneshot:trigger exit early in no chan in oneshot

This commit is contained in:
David Sidrane
2017-04-19 18:23:03 -10:00
committed by Lorenz Meier
parent d21b6655d2
commit b885fd97f6
+3
View File
@@ -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;
@@ -502,6 +504,7 @@ void io_timer_trigger(void)
}
px4_leave_critical_section(flags);
}
}
int io_timer_init_timer(unsigned timer)