From 71ffd050277af04328f1c30f2ee37cada88a1109 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Fri, 15 Nov 2024 07:31:41 -0500 Subject: [PATCH] fix --- selfdrive/car/car_specific.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/car/car_specific.py b/selfdrive/car/car_specific.py index b7a357eafd..df81c7fc54 100644 --- a/selfdrive/car/car_specific.py +++ b/selfdrive/car/car_specific.py @@ -149,7 +149,7 @@ class CarSpecificEvents: # Main button also can trigger an engagement on these cars self.cruise_buttons.append(any(ev.type in HYUNDAI_ENABLE_BUTTONS for ev in CS.buttonEvents)) events = self.create_common_events(CS, CS_prev, pcm_enable=self.CP.pcmCruise, allow_enable=any(self.cruise_buttons), - (self.CP.pcmCruise and b.pressed) or not self.CP.pcmCruise) + allow_disengage=(self.CP.pcmCruise and b.pressed) or not self.CP.pcmCruise) # low speed steer alert hysteresis logic (only for cars with steer cut off above 10 m/s) if CS.vEgo < (self.CP.minSteerSpeed + 2.) and self.CP.minSteerSpeed > 10.: