mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +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 */
|
/* play tune on battery warning */
|
||||||
set_tune(tune_control_s::TUNE_ID_BATTERY_WARNING_SLOW);
|
set_tune(tune_control_s::TUNE_ID_BATTERY_WARNING_SLOW);
|
||||||
|
|
||||||
} else if (_status.failsafe) {
|
} else if (_status.failsafe && _armed.armed) {
|
||||||
tune_failsafe(true);
|
tune_failsafe(true);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user