mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-05 16:26:06 +08:00
The CUPRA MAN forgot his GMC SEAT
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user