From c2a95c9d2c1e66589c741ef31ff347cd1907a9be Mon Sep 17 00:00:00 2001 From: martinl Date: Tue, 25 May 2021 01:36:31 +0300 Subject: [PATCH] Fix Subaru Preglobal create_es_throttle_control (#21010) old-commit-hash: aa0c2a1e7f02aaf0e0379e9287594071b6d572bc --- selfdrive/car/subaru/subarucan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/car/subaru/subarucan.py b/selfdrive/car/subaru/subarucan.py index 8249d36ba9..672b6873bd 100644 --- a/selfdrive/car/subaru/subarucan.py +++ b/selfdrive/car/subaru/subarucan.py @@ -57,10 +57,10 @@ def create_preglobal_steering_control(packer, apply_steer, frame, steer_step): return packer.make_can_msg("ES_LKAS", 0, values) -def create_es_throttle_control(packer, fake_button, es_accel_msg): +def create_es_throttle_control(packer, cruise_button, es_accel_msg): values = copy.copy(es_accel_msg) - values["Button"] = fake_button + values["Cruise_Button"] = cruise_button values["Checksum"] = subaru_preglobal_checksum(packer, values, "ES_CruiseThrottle")