From d3c69aa0bac06f519e7b5d05e5ff47e6facd455a Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Sat, 16 Nov 2024 23:10:05 -0500 Subject: [PATCH] don't add pre enable if not long --- sunnypilot/mads/mads.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sunnypilot/mads/mads.py b/sunnypilot/mads/mads.py index ea97593590..0eafe3e278 100644 --- a/sunnypilot/mads/mads.py +++ b/sunnypilot/mads/mads.py @@ -55,6 +55,8 @@ class ModularAssistiveDrivingSystem: if not self.selfdrive.events.has(EventName.silentWrongGear) and not self.selfdrive.events.has(EventName.silentReverseGear): update_silent_lkas_enable() + self.selfdrive.events.remove(EventName.preEnableStandstill) + if self.disengage_lateral_on_brake_toggle: if self.selfdrive.events.has(EventName.brakeHold): self.selfdrive.events.replace(EventName.brakeHold, EventName.silentBrakeHold)