From d54bc4d0b4b1f833e6859a728062e5e344134fda Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Sun, 15 Sep 2024 17:57:22 -0400 Subject: [PATCH] Fix --- .../lib/custom_stock_longitudinal_controller/controllers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sunnypilot/controls/lib/custom_stock_longitudinal_controller/controllers.py b/sunnypilot/controls/lib/custom_stock_longitudinal_controller/controllers.py index 676a8b488a..304f406ff6 100644 --- a/sunnypilot/controls/lib/custom_stock_longitudinal_controller/controllers.py +++ b/sunnypilot/controls/lib/custom_stock_longitudinal_controller/controllers.py @@ -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