mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 13:58:53 +08:00
Allow tone_alarm cmd to use tone names as well as number
- remove script dependency on hard coded tone numbers - fix bug restarting repeating tone after stop
This commit is contained in:
@@ -19,5 +19,5 @@ then
|
||||
fi
|
||||
else
|
||||
# SOS
|
||||
tone_alarm 6
|
||||
tone_alarm error
|
||||
fi
|
||||
|
||||
@@ -20,7 +20,7 @@ then
|
||||
else
|
||||
echo "[init] no microSD card found"
|
||||
# Play SOS
|
||||
tone_alarm 2
|
||||
tone_alarm error
|
||||
fi
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user