This commit is contained in:
Your Name
2024-05-18 01:48:37 -05:00
parent 3cf51b0f67
commit f2fe22b264

View File

@@ -303,8 +303,8 @@ 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.speed > 0 and self.main_enabled == False:
self.main_buttons[-1] = 0
# if ret.cruiseState.speed > 0 and self.main_enabled == False:
# self.main_buttons[-1] = 0
# Block attempt to engage if breaks are pressed
if self.main_buttons[-1] != 0 and ret.brakePressed and self.main_enabled == False: