Browse Source

rc.fw_interface: use mixer file from sd if it exists

sbg
Thomas Gubler 11 years ago
parent
commit
449ed058c3
  1. 12
      ROMFS/px4fmu_common/init.d/rc.fw_interface

12
ROMFS/px4fmu_common/init.d/rc.fw_interface

@ -13,7 +13,17 @@ param set MAV_TYPE 1 @@ -13,7 +13,17 @@ param set MAV_TYPE 1
# Load mixer
#
echo "[init] Frame geometry: $FRAME_GEOMETRY"
set MIXER /etc/mixers/FMU_$FRAME_GEOMETRY.mix
set MIXERSD /fs/microsd/etc/mixers/FMU_$FRAME_GEOMETRY.mix
#Use the mixer file from the sd-card if it exists
if [ -f $MIXERSD ]
then
set MIXER MIXERSD
else
set MIXER /etc/mixers/FMU_$FRAME_GEOMETRY.mix
fi
if mixer load /dev/pwm_output $MIXER
then

Loading…
Cancel
Save