mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-03 20:42:09 +08:00
fingerprints: prevent global from changing (#29438)
prevent _FINGERPRINTS from changing old-commit-hash: 25ac9e214880ca846a209ce35d8d4245bf391d08
This commit is contained in:
@@ -29,9 +29,8 @@ def eliminate_incompatible_cars(msg, candidate_cars):
|
||||
car_fingerprints = _FINGERPRINTS[car_name]
|
||||
|
||||
for fingerprint in car_fingerprints:
|
||||
fingerprint.update(_DEBUG_ADDRESS) # add alien debug address
|
||||
|
||||
if is_valid_for_fingerprint(msg, fingerprint):
|
||||
# add alien debug address
|
||||
if is_valid_for_fingerprint(msg, fingerprint | _DEBUG_ADDRESS):
|
||||
compatible_cars.append(car_name)
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user