From 1bd6bf91284f607d800b4df5eb1e2375fa3d962e Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Fri, 9 Jun 2023 16:43:14 -0700 Subject: [PATCH] was swapped --- selfdrive/car/fw_versions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/car/fw_versions.py b/selfdrive/car/fw_versions.py index 008295e458..f6a3b0069d 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 config.fuzzy_get_platform_codes is not None and addr[0] in config.fuzzy_ecus: + if addr[0] in config.fuzzy_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)