work on all cars

pull/28386/head
Shane Smiskol 2 years ago
parent e7348f0d86
commit e1a87ae664
  1. 7
      selfdrive/car/fw_versions.py

@ -63,8 +63,6 @@ def match_fw_to_car_fuzzy(fw_versions_dict, config, log=True, exclude=None):
all_fw_versions = defaultdict(set)
all_platform_codes = defaultdict(set)
for candidate, fw_by_addr in FW_VERSIONS.items():
if MODEL_TO_BRAND[candidate] != 'hyundai':
continue
if candidate == exclude:
continue
@ -167,11 +165,8 @@ def match_fw_to_car(fw_versions, allow_exact=True, allow_fuzzy=True):
# For each brand, attempt to fingerprint using all FW returned from its queries
matches = set()
for brand in VERSIONS.keys():
if brand != 'hyundai':
continue
fw_versions_dict = build_fw_dict(fw_versions, filter_brand=brand)
config = FW_QUERY_CONFIGS[brand]
matches |= match_func(fw_versions_dict, config)
matches |= match_func(fw_versions_dict, FW_QUERY_CONFIGS[brand])
if len(matches):
return exact_match, matches

Loading…
Cancel
Save