mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
commander: don't play failsafe tune if disarmed
This commit is contained in:
parent
ecb1264832
commit
7af5a33ff3
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user