This commit is contained in:
Your Name
2024-05-18 01:01:56 -05:00
parent 29c86ac2ed
commit 75f0074444

View File

@@ -302,7 +302,7 @@ class CarState(CarStateBase):
# and cruise can already be enabled when openpilot starts. This compensates for that behavior. # 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 # 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 self.main_buttons[-1] = 0
# Block attempt to engage if breaks are pressed # Block attempt to engage if breaks are pressed