From 7af5a33ff3f2b92944ccb48eacdec729758cdfda Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Wed, 15 Sep 2021 12:15:45 -0400 Subject: [PATCH] commander: don't play failsafe tune if disarmed --- 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 b968a8097f..ce2a37757b 100644 --- a/src/modules/commander/Commander.cpp +++ b/src/modules/commander/Commander.cpp @@ -2842,7 +2842,7 @@ Commander::run() /* play tune on battery warning */ set_tune(tune_control_s::TUNE_ID_BATTERY_WARNING_SLOW); - } else if (_status.failsafe) { + } else if (_status.failsafe && _armed.armed) { tune_failsafe(true); } else {