From 2cba29eabe58a120d51b398f7d13c1ac4130d52c Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Tue, 20 Sep 2022 11:19:23 -0700 Subject: [PATCH] Hyundai: improve EV6 resume reliability (#25847) * Hyundai: improve EV6 resume reliability * this is pretty good Co-authored-by: Comma Device --- selfdrive/car/hyundai/carcontroller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/car/hyundai/carcontroller.py b/selfdrive/car/hyundai/carcontroller.py index db80bcdf48..6f7cc319e4 100644 --- a/selfdrive/car/hyundai/carcontroller.py +++ b/selfdrive/car/hyundai/carcontroller.py @@ -97,7 +97,8 @@ class CarController: # cruise standstill resume elif CC.cruiseControl.resume: if not (self.CP.flags & HyundaiFlags.CANFD_ALT_BUTTONS): - can_sends.append(hyundaicanfd.create_buttons(self.packer, CS.buttons_counter+1, Buttons.RES_ACCEL)) + for _ in range(20): + can_sends.append(hyundaicanfd.create_buttons(self.packer, CS.buttons_counter+1, Buttons.RES_ACCEL)) self.last_button_frame = self.frame else: