commander: don't play failsafe tune if disarmed

This commit is contained in:
Daniel Agar 2021-09-15 12:15:45 -04:00
parent ecb1264832
commit 7af5a33ff3

View File

@ -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 {