mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-04 19:41:35 +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:
@@ -861,9 +861,6 @@ PX4FMU::update_pwm_out_state(bool on)
|
|||||||
up_pwm_servo_init(_pwm_mask);
|
up_pwm_servo_init(_pwm_mask);
|
||||||
set_pwm_rate(_pwm_alt_rate_channels, _pwm_default_rate, _pwm_alt_rate);
|
set_pwm_rate(_pwm_alt_rate_channels, _pwm_default_rate, _pwm_alt_rate);
|
||||||
_pwm_initialized = true;
|
_pwm_initialized = true;
|
||||||
|
|
||||||
} else {
|
|
||||||
_pwm_initialized = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
up_pwm_servo_arm(on);
|
up_pwm_servo_arm(on);
|
||||||
|
|||||||
Reference in New Issue
Block a user