mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 02:36:37 +08:00
Play SOS if the SD card can't be mounted
This commit is contained in:
+6
-2
@@ -21,9 +21,9 @@ set MODE autostart
|
|||||||
set USB autoconnect
|
set USB autoconnect
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start playing the startup tune
|
|
||||||
#
|
#
|
||||||
tone_alarm start
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Try to mount the microSD card.
|
# Try to mount the microSD card.
|
||||||
@@ -32,8 +32,12 @@ echo "[init] looking for microSD..."
|
|||||||
if mount -t vfat /dev/mmcsd0 /fs/microsd
|
if mount -t vfat /dev/mmcsd0 /fs/microsd
|
||||||
then
|
then
|
||||||
echo "[init] card mounted at /fs/microsd"
|
echo "[init] card mounted at /fs/microsd"
|
||||||
|
# Start playing the startup tune
|
||||||
|
tone_alarm start
|
||||||
else
|
else
|
||||||
echo "[init] no microSD card found"
|
echo "[init] no microSD card found"
|
||||||
|
# Play SOS
|
||||||
|
tone_alarm 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user