match_fw_to_car_exact: get config once per candidate (#28384)

lesss
This commit is contained in:
Shane Smiskol
2023-06-04 18:57:11 -07:00
committed by GitHub
parent 90d31b9db4
commit 7c26fc716a
+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:]