aboutsummaryrefslogtreecommitdiff
path: root/ROMFS
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-01-12 18:55:41 +0100
committerThomas Gubler <thomasgubler@gmail.com>2014-01-12 18:55:41 +0100
commit449ed058c3554d2317e25395a2f5ebdb21816294 (patch)
tree2ff872cc4cfccd4358c3600efad95061ed621956 /ROMFS
parentd079074e801a6cb590f91053e2e6d96d5113c5c5 (diff)
downloadpx4-firmware-449ed058c3554d2317e25395a2f5ebdb21816294.tar.gz
px4-firmware-449ed058c3554d2317e25395a2f5ebdb21816294.tar.bz2
px4-firmware-449ed058c3554d2317e25395a2f5ebdb21816294.zip
rc.fw_interface: use mixer file from sd if it exists
Diffstat (limited to 'ROMFS')
-rw-r--r--ROMFS/px4fmu_common/init.d/rc.fw_interface12
1 files changed, 11 insertions, 1 deletions
diff --git a/ROMFS/px4fmu_common/init.d/rc.fw_interface b/ROMFS/px4fmu_common/init.d/rc.fw_interface
index 69f3ed7f7..1bf7a0e03 100644
--- a/ROMFS/px4fmu_common/init.d/rc.fw_interface
+++ b/ROMFS/px4fmu_common/init.d/rc.fw_interface
@@ -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