mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-30 19:33:45 +08:00
Move all fingerprints to fingerprints.py (#30790)
* move fingerpints * fix circular imports * fix circular imports * fix auto fingerprint * fix those tests * and controlsd * add labeler rule * no defaultdict old-commit-hash: 28eed156e0a62ab993de6d534bb102a6ede222f7
This commit is contained in:
@@ -17,7 +17,7 @@ BRAND_TO_PLATFORMS = {brand: [car.value for car in ALL_CARS[brand]] for brand in
|
||||
PLATFORM_TO_BRAND = dict(sum([[(platform, brand) for platform in BRAND_TO_PLATFORMS[brand]] for brand in BRAND_TO_PLATFORMS], []))
|
||||
|
||||
def add_fw_versions(brand, platform, new_fw_versions):
|
||||
filename = f"{BASEDIR}/selfdrive/car/{brand}/values.py"
|
||||
filename = f"{BASEDIR}/selfdrive/car/{brand}/fingerprints.py"
|
||||
with open(filename, "r") as f:
|
||||
values_py = f.read()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user