This commit is contained in:
Jason Wen
2024-09-15 17:57:22 -04:00
committed by GitHub
parent bb1ed2489c
commit d54bc4d0b4
@@ -103,7 +103,7 @@ class CustomStockLongitudinalControllerBase(ABC):
update_manual_button_timers(CS, self.cruise_buttons)
ready = CS.cruiseState.enabled and not CC.cruiseControl.cancel and not CC.cruiseControl.resume
button_pressed = any(self.cruise_buttons[k] > 0 for k in CS.buttonEvents)
button_pressed = any(self.cruise_buttons[k] > 0 for k in self.cruise_buttons)
self.is_ready = ready and not button_pressed