The CUPRA MAN forgot his GMC SEAT

This commit is contained in:
firestarsdog
2026-08-03 23:25:19 -04:00
parent 934c484896
commit 62afc81810
+2 -2
View File
@@ -98,7 +98,6 @@ class StarPilotState:
self.car_state.hasModeStarButtons = False
self.car_state.isBolt = False
self.car_state.isVolt = False
self.params.put("CarMake", fallback_make.title())
if fallback_model:
self.params.put("CarModel", fallback_model)
@@ -190,7 +189,8 @@ class StarPilotState:
self.car_state.vEgoStopping = float(self._safe_get(CP, "vEgoStopping", self.car_state.vEgoStopping))
if car_fingerprint and (not force_fingerprint or PC):
cp_make = car_fingerprint.split('_')[0].title()
make_prefix = car_fingerprint.split("_", 1)[0]
cp_make = make_prefix if make_prefix in {"CUPRA", "GMC", "MAN", "SEAT"} else make_prefix.title()
user_make = self.params.get("CarMake")
if not (force_fingerprint and PC and user_make and user_make != cp_make):
self.params.put("CarModel", car_fingerprint)