Skip to content
Snippets Groups Projects
Commit 6a510826 authored by Beat Küng's avatar Beat Küng Committed by Daniel Agar
Browse files

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.
parent cfad556a
No related branches found
No related tags found
No related merge requests found
......@@ -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.
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment