mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-21 16:23:50 +08:00
fix double DM sounds (#20811)
* fix double DM sounds * debug script * bool * cleanup * inf Co-authored-by: Comma Device <device@comma.ai>
This commit is contained in:
+2
-3
@@ -224,9 +224,8 @@ static void update_alert(UIState *s) {
|
||||
if (s->sm->updated("controlsState")) {
|
||||
auto alert_sound = scene.controls_state.getAlertSound();
|
||||
if (scene.alert_type.compare(scene.controls_state.getAlertType()) != 0) {
|
||||
if (alert_sound == AudibleAlert::NONE) {
|
||||
s->sound->stop();
|
||||
} else {
|
||||
s->sound->stop();
|
||||
if (alert_sound != AudibleAlert::NONE) {
|
||||
s->sound->play(alert_sound);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user