diff --git a/selfdrive/car/fw_versions.py b/selfdrive/car/fw_versions.py index a606ded5fd..18185eef86 100755 --- a/selfdrive/car/fw_versions.py +++ b/selfdrive/car/fw_versions.py @@ -77,7 +77,7 @@ def match_fw_to_car_fuzzy(fw_versions_dict, config, log=True, exclude=None): all_fw_versions[(addr[1], addr[2], f)].append(candidate) # Add platform codes to lookup dict if config specifies a function - if addr[0] in config.fuzzy_ecus and config.fuzzy_get_platform_codes is not None: + if addr[0] in config.platform_code_ecus and config.fuzzy_get_platform_codes is not None: for platform_code in config.fuzzy_get_platform_codes(fws): all_platform_codes[(addr[1], addr[2], platform_code)].append(candidate) diff --git a/selfdrive/car/hyundai/tests/test_hyundai.py b/selfdrive/car/hyundai/tests/test_hyundai.py index 27726829e4..1b0050368e 100755 --- a/selfdrive/car/hyundai/tests/test_hyundai.py +++ b/selfdrive/car/hyundai/tests/test_hyundai.py @@ -126,7 +126,7 @@ class TestHyundaiFingerprint(TestFwFingerprintBase): # Only test fuzzy ECUs so excluded platforms for platforms codes are accurate # We can still fuzzy match via exact FW matches ecu_name, addr, sub_addr = ecu - if ecu_name not in FW_QUERY_CONFIG.fuzzy_ecus: + if ecu_name not in FW_QUERY_CONFIG.platform_code_ecus: continue for fw in fw_versions: