From f07e9444f8ef791c45828df914afa0bebfe5e819 Mon Sep 17 00:00:00 2001 From: Eric Brown Date: Sat, 10 Aug 2024 09:15:43 -0600 Subject: [PATCH] [CC Long] Set correct flags --- selfdrive/car/gm/interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/car/gm/interface.py b/selfdrive/car/gm/interface.py index 62e32c9bf4f562..f84e766ee14eee 100755 --- a/selfdrive/car/gm/interface.py +++ b/selfdrive/car/gm/interface.py @@ -261,9 +261,9 @@ def _get_params(ret, candidate, fingerprint, car_fw, experimental_long, docs): elif candidate in CC_ONLY_CAR: ret.experimentalLongitudinalAvailable = True + ret.flags |= GMFlags.CC_LONG.value + ret.safetyConfigs[0].safetyParam |= Panda.FLAG_GM_CC_LONG if experimental_long: - ret.flags |= GMFlags.CC_LONG.value - ret.safetyConfigs[0].safetyParam |= Panda.FLAG_GM_CC_LONG ret.openpilotLongitudinalControl = True ret.radarUnavailable = True ret.minEnableSpeed = 24 * CV.MPH_TO_MS