From 000bb1b5b338fdbd2d3c975e8237e0c7282fb382 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Mon, 30 Sep 2024 10:56:30 -0400 Subject: [PATCH] explicit --- sunnypilot/mads/state.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sunnypilot/mads/state.py b/sunnypilot/mads/state.py index 82618c0ec6..7c65f1c65d 100644 --- a/sunnypilot/mads/state.py +++ b/sunnypilot/mads/state.py @@ -83,7 +83,7 @@ class Enabled(StateMachineBase): self.state = State.softDisabling if not self.selfdrive.active: self.ss_state_machine.soft_disable_timer = int(SOFT_DISABLE_TIME / DT_CTRL) - self.add_current_alert_types(ET.SOFT_DISABLE) + self.ss_state_machine.current_alert_types.append(ET.SOFT_DISABLE) elif events.contains(ET.OVERRIDE_LATERAL): self.state = State.overriding @@ -109,7 +109,7 @@ class Overriding(StateMachineBase): self.state = State.softDisabling if not self.selfdrive.active: self.ss_state_machine.soft_disable_timer = int(SOFT_DISABLE_TIME / DT_CTRL) - self.add_current_alert_types(ET.SOFT_DISABLE) + self.ss_state_machine.current_alert_types.append(ET.SOFT_DISABLE) elif not events.contains(ET.OVERRIDE_LATERAL): self.state = State.enabled else: