From 51358027608b09d9aebcee2e26dac82f66a05103 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Sat, 14 Sep 2024 22:44:13 -0400 Subject: [PATCH] newer platforms has pause/resume --- .../hyundai/custom_stock_longitudinal_controller/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sunnypilot/selfdrive/car/hyundai/custom_stock_longitudinal_controller/controller.py b/sunnypilot/selfdrive/car/hyundai/custom_stock_longitudinal_controller/controller.py index 8615615bf7..4839c6ae7f 100644 --- a/sunnypilot/selfdrive/car/hyundai/custom_stock_longitudinal_controller/controller.py +++ b/sunnypilot/selfdrive/car/hyundai/custom_stock_longitudinal_controller/controller.py @@ -13,7 +13,7 @@ class CustomStockLongitudinalController(CustomStockLongitudinalControllerBase): super().__init__(car, car_controller, car_state, CP) self.accel_button = Buttons.RES_ACCEL self.decel_button = Buttons.SET_DECEL - self.set_speed_buttons = (ButtonType.accelCruise, ButtonType.decelCruise) + self.set_speed_buttons = (ButtonType.accelCruise, ButtonType.decelCruise, ButtonType.cancel) def create_can_mock_button_messages(self) -> list[SendCan]: can_sends = []