mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-07 22:12:05 +08:00
stop sounds after going offroad
This commit is contained in:
@@ -243,6 +243,7 @@ void ui_update(UIState *s) {
|
||||
s->status = STATUS_OFFROAD;
|
||||
s->active_app = cereal::UiLayoutState::App::HOME;
|
||||
s->scene.uilayout_sidebarcollapsed = false;
|
||||
s->sound->stop();
|
||||
} else if (s->started && s->status == STATUS_OFFROAD) {
|
||||
s->status = STATUS_DISENGAGED;
|
||||
s->started_frame = s->sm->frame;
|
||||
|
||||
Reference in New Issue
Block a user