diff options
Diffstat (limited to 'ROMFS/px4fmu_common/init.d/rc.interface')
-rw-r--r-- | ROMFS/px4fmu_common/init.d/rc.interface | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ROMFS/px4fmu_common/init.d/rc.interface b/ROMFS/px4fmu_common/init.d/rc.interface index bab71be93..87c9e3045 100644 --- a/ROMFS/px4fmu_common/init.d/rc.interface +++ b/ROMFS/px4fmu_common/init.d/rc.interface @@ -80,3 +80,17 @@ then pwm failsafe -d $OUTPUT_DEV $FAILSAFE fi fi + +# check if should load secondary mixer +if [ $MIXER_SEC != none ] +then + if fmu mode_pwm + then + echo "[i] FMU mode_pwm started to handle secondary mixer" + # load the specified mixer + mixer load /dev/pwm_output1 /etc/mixers/$MIXER_SEC.mix + else + echo "[i] ERROR: FMU mode_pwm start failed" + tone_alarm $TUNE_ERR + fi +fi |