mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 15:40:31 +08:00
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:
@@ -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.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user