diff --git a/platforms/nuttx/src/px4/stm/stm32_common/io_pins/io_timer.c b/platforms/nuttx/src/px4/stm/stm32_common/io_pins/io_timer.c index 5a72cc9f5e..4246ea3585 100644 --- a/platforms/nuttx/src/px4/stm/stm32_common/io_pins/io_timer.c +++ b/platforms/nuttx/src/px4/stm/stm32_common/io_pins/io_timer.c @@ -898,11 +898,13 @@ int io_timer_set_enable(bool state, io_timer_channel_mode_t mode, io_timer_chann case IOTimerChanMode_Dshot: dier_bit = 0; - cr1_bit = state ? GTIM_CR1_CEN : 0; - break; - case IOTimerChanMode_PWMIn: + /* fallthrough */ case IOTimerChanMode_Capture: + cr1_bit = state ? GTIM_CR1_CEN : 0; + + /* fallthrough */ + case IOTimerChanMode_PWMIn: break; default: