mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-21 22:12:05 +08:00
handle bad VIN (#24712)
This commit is contained in:
@@ -116,6 +116,9 @@ def fingerprint(logcan, sendcan):
|
||||
vin = VIN_UNKNOWN
|
||||
exact_fw_match, fw_candidates, car_fw = True, set(), []
|
||||
|
||||
if len(vin) != 17:
|
||||
cloudlog.event("Malformed VIN", vin=vin, error=True)
|
||||
vin = VIN_UNKNOWN
|
||||
cloudlog.warning("VIN %s", vin)
|
||||
Params().put("CarVin", vin)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user