From fc1924deeca434b8ac668f5d56b1aace2dbd82f1 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 4 Aug 2015 23:26:54 +0200 Subject: [PATCH] Support the SYS_USE_IO=0 operation mode even with AUX mixer file present --- ROMFS/px4fmu_common/init.d/rc.interface | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ROMFS/px4fmu_common/init.d/rc.interface b/ROMFS/px4fmu_common/init.d/rc.interface index 71b670888e..571e808b6f 100644 --- a/ROMFS/px4fmu_common/init.d/rc.interface +++ b/ROMFS/px4fmu_common/init.d/rc.interface @@ -98,6 +98,13 @@ then fi # check if should load secondary mixer +set OUTPUT_AUX_DEV /dev/pwm_output1 +if [ -f $OUTPUT_AUX_DEV ] +then +else + set MIXER_AUX none +fi + if [ $MIXER_AUX != none ] then # @@ -105,7 +112,6 @@ then # set MIXER_AUX_FILE none - set OUTPUT_AUX_DEV /dev/pwm_output1 if [ -f $SDCARD_MIXERS_PATH/$MIXER_AUX.aux.mix ] then @@ -169,3 +175,4 @@ then fi fi unset OUTPUT_DEV +unset OUTPUT_AUX_DEV