mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-09-30 17:03:41 +08:00
Fix
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user