mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-30 07:44:06 +08:00
fmu: don' de-initialize
Once the PWM outputs are initialized, there is no point in de-initializing them again.
This commit is contained in:
parent
f4e35873a1
commit
d63870ad71
@ -861,9 +861,6 @@ PX4FMU::update_pwm_out_state(bool on)
|
||||
up_pwm_servo_init(_pwm_mask);
|
||||
set_pwm_rate(_pwm_alt_rate_channels, _pwm_default_rate, _pwm_alt_rate);
|
||||
_pwm_initialized = true;
|
||||
|
||||
} else {
|
||||
_pwm_initialized = false;
|
||||
}
|
||||
|
||||
up_pwm_servo_arm(on);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user