match_fw_to_car_exact: get config once per candidate (#28384)

lesss
old-commit-hash: 7c26fc716aa2611acc2e80ff19c138e9a077803c
This commit is contained in:
Shane Smiskol
2023-06-04 18:57:11 -07:00
committed by GitHub
parent 7d4e006c2f
commit e9806172a9
+1 -1
View File
@@ -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:]