match_fw_to_car_exact: get config once per candidate (#28384)

lesss
pull/28406/head
Shane Smiskol 2 years ago committed by GitHub
parent 90d31b9db4
commit 7c26fc716a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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:]

Loading…
Cancel
Save