From 6a5108269e892636826073fd41cbc8eddf57e891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Sat, 15 Dec 2018 13:56:07 +0100 Subject: [PATCH] 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. --- ROMFS/px4fmu_common/init.d/rcS | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 16733fc000..a90267cd4c 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -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. #