don't add pre enable if not long

This commit is contained in:
Jason Wen
2024-11-16 23:10:05 -05:00
parent 8e578bf0b0
commit d3c69aa0ba
+2
View File
@@ -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)