From f66c3914f616c23a2459016b7ade1284345b8e8b Mon Sep 17 00:00:00 2001 From: Junwoo Hwang Date: Tue, 3 May 2022 10:44:42 +0200 Subject: [PATCH] Give priority to power off tune over other tunes (e.g. Battery Low) Make Power Off tune not interruptable This solves the case of Low Battery warning tune overriding the power off tune, as now the Power off tune is not interruptable by any other tune unless override flag is specified commander_helper: resolve "redundant boolean literal in ternary expression result" --- src/lib/tunes/tune_definition.desc | 2 +- src/modules/commander/Commander.cpp | 8 +++----- src/modules/commander/commander_helper.cpp | 4 ++-- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/lib/tunes/tune_definition.desc b/src/lib/tunes/tune_definition.desc index db4ee927e7..7c09be81fc 100644 --- a/src/lib/tunes/tune_definition.desc +++ b/src/lib/tunes/tune_definition.desc @@ -104,4 +104,4 @@ PX4_DEFINE_TUNE(15, SD_ERROR, "MNBG", PX4_DEFINE_TUNE(16, PROG_PX4IO, "MLL32CP8MB", false /* Program PX4IO */) PX4_DEFINE_TUNE(17, PROG_PX4IO_OK, "MLL8CDE", false /* Program PX4IO success */) PX4_DEFINE_TUNE(18, PROG_PX4IO_ERR, "ML<