fix(radio): do not mask inputs if PWM gimbal detection failed (#6373)

Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
Co-authored-by: 3djc <3djc@gh.com>
This commit is contained in:
Raphael Coeffic
2025-06-21 15:04:03 +10:00
committed by GitHub
co-authored by raphaelcoeffic 3djc
parent 6187cfa87c
commit d81513d4f2
3 changed files with 5 additions and 4 deletions
@@ -113,11 +113,11 @@ bool sticks_pwm_detect(const stick_pwm_timer_t* timer,
if (!valid_input) {
sticks_pwm_deinit(timer);
} else {
// mask gimbal inputs
stm32_hal_set_inputs_mask(0xF);
}
// mask gimbal inputs
stm32_hal_set_inputs_mask(0xF);
return valid_input;
}