From c9c66ce21a1cacf78c6c76f09adab2a2507d8051 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Sun, 10 May 2020 20:13:35 -0700 Subject: [PATCH] Fix counter in HKG clu11 message (#1484) * fix counter in clu11 message * update ref --- selfdrive/car/hyundai/hyundaican.py | 2 +- selfdrive/test/process_replay/ref_commit | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/car/hyundai/hyundaican.py b/selfdrive/car/hyundai/hyundaican.py index 32aefc85..b5969d01 100644 --- a/selfdrive/car/hyundai/hyundaican.py +++ b/selfdrive/car/hyundai/hyundaican.py @@ -65,7 +65,7 @@ def create_lkas11(packer, frame, car_fingerprint, apply_steer, steer_req, def create_clu11(packer, frame, clu11, button): values = clu11 values["CF_Clu_CruiseSwState"] = button - values["CF_Clu_CruiseSwState"] = frame % 0x10 + values["CF_Clu_AliveCnt1"] = frame % 0x10 return packer.make_can_msg("CLU11", 0, values) diff --git a/selfdrive/test/process_replay/ref_commit b/selfdrive/test/process_replay/ref_commit index 64390dba..9023bfba 100644 --- a/selfdrive/test/process_replay/ref_commit +++ b/selfdrive/test/process_replay/ref_commit @@ -1 +1 @@ -79bba4ca90f4c7d6c4fddcd9a916f94966a40dca \ No newline at end of file +1050a84363baf1e7910d3f8f9a01e201e6041e70 \ No newline at end of file