libtunes: handle tune override

This commit is contained in:
Simone Guscetti
2018-01-29 09:45:59 -05:00
committed by Daniel Agar
parent 6c8b16391e
commit 3f123acd7e
2 changed files with 24 additions and 20 deletions
+1 -1
View File
@@ -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;
}