mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-12 23:42:23 +08:00
commander: don't play failsafe tune if disarmed
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user