From af839c828da56f4eb03c0af97a9cb989fe761a2a Mon Sep 17 00:00:00 2001 From: Junwoo Hwang Date: Mon, 25 Apr 2022 16:17:10 +0200 Subject: [PATCH] Set Tune's Volume for Power-Off in Commander to default volume of tune_control message --- src/modules/commander/Commander.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/commander/Commander.cpp b/src/modules/commander/Commander.cpp index 21f7f68539..00672c1127 100644 --- a/src/modules/commander/Commander.cpp +++ b/src/modules/commander/Commander.cpp @@ -96,7 +96,7 @@ static orb_advert_t tune_control_pub = nullptr; static void play_power_button_down_tune() { tune_control_s tune_control{}; - tune_control.volume = tune_control_s::VOLUME_LEVEL_DEFAULT - 20; + tune_control.volume = tune_control_s::VOLUME_LEVEL_DEFAULT; tune_control.tune_id = tune_control_s::TUNE_ID_POWER_OFF; tune_control.timestamp = hrt_absolute_time(); orb_publish(ORB_ID(tune_control), tune_control_pub, &tune_control);