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