mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 07:43:34 +08:00
Mixer load: Be less chatty
This commit is contained in:
@@ -9,7 +9,7 @@ then
|
|||||||
# Load mixer
|
# Load mixer
|
||||||
#
|
#
|
||||||
|
|
||||||
#Use the mixer file from the SD-card if it exists
|
# Use the mixer file from the SD-card if it exists
|
||||||
if [ -f /fs/microsd/etc/mixers/$MIXER.mix ]
|
if [ -f /fs/microsd/etc/mixers/$MIXER.mix ]
|
||||||
then
|
then
|
||||||
set MIXER_FILE /fs/microsd/etc/mixers/$MIXER.mix
|
set MIXER_FILE /fs/microsd/etc/mixers/$MIXER.mix
|
||||||
@@ -86,11 +86,8 @@ if [ $MIXER_SEC != none ]
|
|||||||
then
|
then
|
||||||
if fmu mode_pwm
|
if fmu mode_pwm
|
||||||
then
|
then
|
||||||
echo "[i] FMU mode_pwm started to handle secondary mixer"
|
|
||||||
# load the specified mixer
|
|
||||||
mixer load /dev/pwm_output1 /etc/mixers/$MIXER_SEC.mix
|
mixer load /dev/pwm_output1 /etc/mixers/$MIXER_SEC.mix
|
||||||
else
|
else
|
||||||
echo "[i] ERROR: FMU mode_pwm start failed"
|
|
||||||
tone_alarm $TUNE_ERR
|
tone_alarm $TUNE_ERR
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user