PWM out: Ensure correct loading on single-bank targets

This commit is contained in:
Lorenz Meier 2021-03-17 21:53:18 +01:00
parent 9490c64ad4
commit d35ce21594
2 changed files with 2 additions and 3 deletions

View File

@ -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.

View File

@ -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) {