aboutsummaryrefslogtreecommitdiff
path: root/ROMFS
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2012-10-21 17:51:21 -0700
committerpx4dev <px4@purgatory.org>2012-10-21 17:51:21 -0700
commit5925d146bc0457ad0955a939e50eff4c5fe131f8 (patch)
tree12693af1004baa4aed55ced00713de764fe98241 /ROMFS
parent73521cbc66fa4fbc350c15cef277fabfce89c150 (diff)
downloadpx4-firmware-5925d146bc0457ad0955a939e50eff4c5fe131f8.tar.gz
px4-firmware-5925d146bc0457ad0955a939e50eff4c5fe131f8.tar.bz2
px4-firmware-5925d146bc0457ad0955a939e50eff4c5fe131f8.zip
Move the tone_alarm driver out of the NuttX configs area and add it as an stm32-specific driver in the PX4 apps space.
Add a new tone_alarm command that can be used to start/stop alarm tones from the shell.
Diffstat (limited to 'ROMFS')
-rwxr-xr-xROMFS/scripts/rcS8
1 files changed, 5 insertions, 3 deletions
diff --git a/ROMFS/scripts/rcS b/ROMFS/scripts/rcS
index 3377abe77..409bde33b 100755
--- a/ROMFS/scripts/rcS
+++ b/ROMFS/scripts/rcS
@@ -21,6 +21,11 @@ set MODE autostart
set USB autoconnect
#
+# Start playing the startup tune
+#
+tone_alarm start
+
+#
# Try to mount the microSD card.
#
echo "[init] looking for microSD..."
@@ -31,9 +36,6 @@ else
echo "[init] no microSD card found"
fi
-usleep 500
-
-
#
# Look for an init script on the microSD card.
#