From 7c26fc716aa2611acc2e80ff19c138e9a077803c Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Sun, 4 Jun 2023 18:57:11 -0700 Subject: [PATCH] match_fw_to_car_exact: get config once per candidate (#28384) lesss --- 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 3c18c2e7bd..cd3ef7977c 100755 --- a/selfdrive/car/fw_versions.py +++ b/selfdrive/car/fw_versions.py @@ -103,8 +103,8 @@ def match_fw_to_car_exact(fw_versions_dict) -> Set[str]: candidates = FW_VERSIONS for candidate, fws in candidates.items(): + config = FW_QUERY_CONFIGS[MODEL_TO_BRAND[candidate]] for ecu, expected_versions in fws.items(): - config = FW_QUERY_CONFIGS[MODEL_TO_BRAND[candidate]] ecu_type = ecu[0] addr = ecu[1:]