From 45e8b8403263f8f1b5d2e1141d65222e4d5d35e7 Mon Sep 17 00:00:00 2001 From: discountchubbs Date: Tue, 25 Mar 2025 13:42:49 -0700 Subject: [PATCH] place under CP.brand =='hyundai' --- sunnypilot/selfdrive/car/interfaces.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sunnypilot/selfdrive/car/interfaces.py b/sunnypilot/selfdrive/car/interfaces.py index 6136e69ba4..607c3f74c5 100644 --- a/sunnypilot/selfdrive/car/interfaces.py +++ b/sunnypilot/selfdrive/car/interfaces.py @@ -50,15 +50,15 @@ def setup_car_interface_sp(CP: structs.CarParams, CP_SP: structs.CarParamsSP, pa if params is None: params = Params() - tuning_option_str = params.get("HyundaiLongTune") - if tuning_option_str is not None: - tuning_option_str = tuning_option_str.strip() - if tuning_option_str != "0": - CP_SP.flags |= HyundaiFlagsSP.HKGLONGTUNING.value - if params.get_bool("HyundaiSmootherBraking"): + if CP.brand == 'hyundai': + tuning_option_str = params.get("HyundaiLongTune") + if tuning_option_str is not None: + tuning_option_str = tuning_option_str.strip() + if tuning_option_str != "0": + CP_SP.flags |= HyundaiFlagsSP.HKGLONGTUNING.value + if params.get_bool("HyundaiSmootherBraking"): CP_SP.flags |= HyundaiFlagsSP.HKGLONGTUNING_BRAKING.value - if CP.brand == 'hyundai': if CP.flags & HyundaiFlags.MANDO_RADAR and CP.radarUnavailable: # Having this automatic without a toggle causes a weird process replay diff because # somehow it sees fewer logs than intended