mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
PWM out: Ensure correct loading on single-bank targets
This commit is contained in:
parent
9490c64ad4
commit
d35ce21594
@ -180,7 +180,6 @@ then
|
||||
if [ $MIXER_AUX_FILE != none ]
|
||||
then
|
||||
# Start the output module
|
||||
$OUTPUT_CMD start
|
||||
if $OUTPUT_CMD mode_${AUX_MODE}
|
||||
then
|
||||
# Append aux mixer to main device.
|
||||
|
||||
@ -1983,8 +1983,8 @@ int PWMOut::custom_command(int argc, char *argv[])
|
||||
}
|
||||
|
||||
|
||||
/* start the FMU if not running */
|
||||
if (!is_running()) {
|
||||
/* start pwm_out if not running */
|
||||
if (_objects[0].load() == nullptr) {
|
||||
int ret = PWMOut::task_spawn(argc, argv);
|
||||
|
||||
if (ret) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user