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:
co-authored by
raphaelcoeffic
3djc
parent
6187cfa87c
commit
d81513d4f2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user