From 053b07e4c0413583cec5fd3697ac486757d9fc7b Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Wed, 31 Jul 2024 17:04:00 -0400 Subject: [PATCH] honda only --- selfdrive/controls/controlsd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index 214e439400..a8dcc3b5e4 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -741,7 +741,7 @@ class Controls: CC.cruiseControl.override = self.enabled_long and not CC.longActive and self.CP.openpilotLongitudinalControl CC.cruiseControl.cancel = CS.cruiseState.enabled and \ (not self.enabled_long or (CS.brakePressed and (not self.CS_prev.brakePressed or not CS.standstill)) or - (self.CP.openpilotLongitudinalControl and self.CP.pcmCruise and self.CP.minEnableSpeed > 0 and self.CP.pcmCruiseSpeed and not self.CS_prev.accEnabled)) + (any(b.type == ButtonType.cancel for b in CS.buttonEvents) and self.CP.carName == "honda")) if self.joystick_mode and self.sm.recv_frame['testJoystick'] > 0 and self.sm['testJoystick'].buttons[0]: CC.cruiseControl.cancel = True