mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 01:52:06 +08:00
test fw query: fix migration import (#29283)
huh this was just broken old-commit-hash: b34341e7e5736d1e67dfb20c8edd9a07d269e2a1
This commit is contained in:
@@ -18,9 +18,9 @@ SUPPORTED_CARS = [brand for brand in SUPPORTED_BRANDS for brand in interface_nam
|
||||
UNKNOWN_BRAND = "unknown"
|
||||
|
||||
try:
|
||||
from xx.pipeline.c.CarState import migration
|
||||
from xx.pipeline.lib.fingerprint import MIGRATION
|
||||
except ImportError:
|
||||
migration = {}
|
||||
MIGRATION = {}
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(description='Run FW fingerprint on Qlog of route or list of routes')
|
||||
@@ -78,7 +78,7 @@ if __name__ == "__main__":
|
||||
break
|
||||
|
||||
live_fingerprint = CP.carFingerprint
|
||||
live_fingerprint = migration.get(live_fingerprint, live_fingerprint)
|
||||
live_fingerprint = MIGRATION.get(live_fingerprint, live_fingerprint)
|
||||
|
||||
if args.car is not None:
|
||||
live_fingerprint = args.car
|
||||
|
||||
Reference in New Issue
Block a user