PX4: add startup tone file

This commit is contained in:
Jonathan Challinger 2016-01-22 11:56:55 -08:00 committed by Andrew Tridgell
parent 246cf113df
commit 19f80dbcb4
3 changed files with 19 additions and 3 deletions

View File

@ -141,7 +141,12 @@ then
then
set HAVE_PX4IO true
# play happy tune again
tone_alarm 1
if [ -f /etc/tones/startup ]
then
tone_alarm /etc/tones/startup
else
tone_alarm 1
fi
fi
fi
else

View File

@ -43,7 +43,12 @@ then
echo "[init] card mounted at /fs/microsd"
set HAVE_MICROSD 1
# Start playing the startup tune
tone_alarm 1
if [ -f /etc/tones/startup ]
then
tone_alarm /etc/tones/startup
else
tone_alarm 1
fi
else
set HAVE_MICROSD 0
echo "Trying format of microSD"
@ -55,7 +60,12 @@ else
then
echo "format succeeded"
set HAVE_MICROSD 1
tone_alarm 1
if [ -f /etc/tones/startup ]
then
tone_alarm /etc/tones/startup
else
tone_alarm 1
fi
else
echo "mount failed"
tone_alarm MNBG

View File

@ -0,0 +1 @@
MFT240L8O4aO5dcO4aO5dcO4aO5dcL16dcdcdcdc