mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 11:59:17 +08:00
Support the SYS_USE_IO=0 operation mode even with AUX mixer file present
This commit is contained in:
@@ -98,6 +98,13 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# check if should load secondary mixer
|
# 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 ]
|
if [ $MIXER_AUX != none ]
|
||||||
then
|
then
|
||||||
#
|
#
|
||||||
@@ -105,7 +112,6 @@ then
|
|||||||
#
|
#
|
||||||
|
|
||||||
set MIXER_AUX_FILE none
|
set MIXER_AUX_FILE none
|
||||||
set OUTPUT_AUX_DEV /dev/pwm_output1
|
|
||||||
|
|
||||||
if [ -f $SDCARD_MIXERS_PATH/$MIXER_AUX.aux.mix ]
|
if [ -f $SDCARD_MIXERS_PATH/$MIXER_AUX.aux.mix ]
|
||||||
then
|
then
|
||||||
@@ -169,3 +175,4 @@ then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
unset OUTPUT_DEV
|
unset OUTPUT_DEV
|
||||||
|
unset OUTPUT_AUX_DEV
|
||||||
|
|||||||
Reference in New Issue
Block a user