rcS tone_alarm: fix CBRK_BUZZER

tone_alarm was started before the parameters were loaded, and the first
tune was played before that as well. CBRK_BUZZER was then read as default,
ignoring the user-configured value.

We now start tone_alarm after we load the parameters. Note that a
previously published startup tone or SD card error will still be played.
This commit is contained in:
Beat Küng
2018-12-15 13:56:07 +01:00
committed by Daniel Agar
parent cfad556a16
commit 6a5108269e
+7 -5
View File
@@ -79,11 +79,6 @@ ver all
#
uorb start
#
# Start the tone_alarm driver.
#
tone_alarm start
#
# Try to mount the microSD card.
#
@@ -173,6 +168,13 @@ else
param reset
fi
#
# Start the tone_alarm driver.
# Needs to be started after the parameters are loaded (for CBRK_BUZZER).
# Note that this will still play the already published startup tone.
#
tone_alarm start
#
# Start system state indicator.
#