From 75f0074444507a41606af79c7c2e621022a7a78a Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 18 May 2024 01:01:56 -0500 Subject: [PATCH] wip --- selfdrive/car/hyundai/carstate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/car/hyundai/carstate.py b/selfdrive/car/hyundai/carstate.py index 00b1b66..7198c6f 100755 --- a/selfdrive/car/hyundai/carstate.py +++ b/selfdrive/car/hyundai/carstate.py @@ -302,7 +302,7 @@ class CarState(CarStateBase): # and cruise can already be enabled when openpilot starts. This compensates for that behavior. # Block attempt to engage if already engaged according to cruise state - if ret.cruiseState > 0 and self.main_enabled == False: + if ret.cruiseState.speed > 0 and self.main_enabled == False: self.main_buttons[-1] = 0 # Block attempt to engage if breaks are pressed