diff options
author | Roman Bapst <romanbapst@yahoo.de> | 2015-04-21 12:35:35 +0200 |
---|---|---|
committer | Roman Bapst <romanbapst@yahoo.de> | 2015-04-21 13:22:57 +0200 |
commit | 05847fd4c7049f09ff6e72a32f10074129f0235f (patch) | |
tree | 58652fa6b63560c805746d0bea2624b696162352 /ROMFS/px4fmu_common/init.d/rc.interface | |
parent | 8f762b57670d8ccf9e37b66699122135fdc624ff (diff) | |
download | px4-firmware-05847fd4c7049f09ff6e72a32f10074129f0235f.tar.gz px4-firmware-05847fd4c7049f09ff6e72a32f10074129f0235f.tar.bz2 px4-firmware-05847fd4c7049f09ff6e72a32f10074129f0235f.zip |
improve serial output during loading of mixers
Diffstat (limited to 'ROMFS/px4fmu_common/init.d/rc.interface')
-rw-r--r-- | ROMFS/px4fmu_common/init.d/rc.interface | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ROMFS/px4fmu_common/init.d/rc.interface b/ROMFS/px4fmu_common/init.d/rc.interface index efdba9506..7a424970f 100644 --- a/ROMFS/px4fmu_common/init.d/rc.interface +++ b/ROMFS/px4fmu_common/init.d/rc.interface @@ -45,7 +45,7 @@ then if mixer load $OUTPUT_DEV $MIXER_FILE then - echo "[i] Mixer: $MIXER_FILE" + echo "[i] Mixer: $MIXER_FILE on $OUTPUT_DEV" else echo "[i] Error loading mixer: $MIXER_FILE" tone_alarm $TUNE_ERR @@ -105,7 +105,7 @@ then set MIXER_AUX_FILE none set OUTPUT_AUX_DEV /dev/pwm_output1 - if [ -f $SDCARD_MIXERS_PATH/$MIXER_AUX.mix ] + if [ -f $SDCARD_MIXERS_PATH/$MIXER_AUX.aux.mix ] then set MIXER_AUX_FILE $SDCARD_MIXERS_PATH/$MIXER_AUX.aux.mix else @@ -120,7 +120,12 @@ then then if fmu mode_pwm then - mixer load $OUTPUT_AUX_DEV $MIXER_AUX_FILE + if mixer load $OUTPUT_AUX_DEV $MIXER_AUX_FILE + then + echo "[i] Mixer: $MIXER_AUX_FILE on $OUTPUT_AUX_DEV" + else + echo "[i] Error loading mixer: $MIXER_AUX_FILE" + fi else tone_alarm $TUNE_ERR fi |