mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 23:03:34 +08:00
libtunes: handle tune override
This commit is contained in:
committed by
Daniel Agar
parent
6c8b16391e
commit
3f123acd7e
@@ -122,7 +122,7 @@ void Tunes::set_control(const tune_control_s &tune_control)
|
||||
case tune_control_s::TUNE_ID_HOME_SET:
|
||||
|
||||
// TODO: come up with a better strategy
|
||||
if (_tune == nullptr || reset_playing_tune) {
|
||||
if (_tune == nullptr || reset_playing_tune || tune_control.tune_override) {
|
||||
_tune = _default_tunes[tune_control.tune_id];
|
||||
_next = _tune;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user