match_fw_to_car_exact: get config once per candidate (#28384)

lesss
old-commit-hash: 7c26fc716a
beeps
Shane Smiskol 2 years ago committed by GitHub
parent 7d4e006c2f
commit e9806172a9
  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