From 9b525323427bcebdbac80e8b2f54a995764de2fe Mon Sep 17 00:00:00 2001 From: discountchubbs Date: Thu, 20 Mar 2025 19:25:58 -0700 Subject: [PATCH] CP --- opendbc_repo | 2 +- selfdrive/car/card.py | 2 +- sunnypilot/selfdrive/car/hkg_specific_params.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/opendbc_repo b/opendbc_repo index def354acdc..ce029095e5 160000 --- a/opendbc_repo +++ b/opendbc_repo @@ -1 +1 @@ -Subproject commit def354acdc33a284db78a693d6fba75274ec13d9 +Subproject commit ce029095e543c1a6bd7c788f62059220794ea4ab diff --git a/selfdrive/car/card.py b/selfdrive/car/card.py index bb15d88bf4..eee3e2390b 100755 --- a/selfdrive/car/card.py +++ b/selfdrive/car/card.py @@ -129,7 +129,7 @@ class Car: # mads set_alternative_experience(self.CP, self.params) set_car_specific_params(self.CP, self.CP_SP, self.params) - set_hyundai_long_tune_flag(self.CP_SP) + set_hyundai_long_tune_flag(self.CP) # Dynamic Experimental Control self.dynamic_experimental_control = self.params.get_bool("DynamicExperimentalControl") diff --git a/sunnypilot/selfdrive/car/hkg_specific_params.py b/sunnypilot/selfdrive/car/hkg_specific_params.py index 052fff1826..1af932e0f5 100644 --- a/sunnypilot/selfdrive/car/hkg_specific_params.py +++ b/sunnypilot/selfdrive/car/hkg_specific_params.py @@ -10,9 +10,9 @@ class HyundaiLongTuneParams: return val in [b"1", b"2"] -def set_hyundai_long_tune_flag(CP_SP: structs.CarParamsSP): +def set_hyundai_long_tune_flag(CP: structs.CarParams): params = Params() if HyundaiLongTuneParams.param(params, "HyundaiLongTune"): - CP_SP.flags |= HyundaiFlagsSP.HKGLONGTUNING.value + CP.flags |= HyundaiFlagsSP.HKGLONGTUNING.value if params.get_bool("HyundaiSmootherBraking"): - CP_SP.flags |= HyundaiFlagsSP.HKGLONGTUNING_BRAKING.value + CP.flags |= HyundaiFlagsSP.HKGLONGTUNING_BRAKING.value