fw_versions: fix ECU scanning (#25283)

Fix when scanning
old-commit-hash: 5a6b0a9f4ca065a14abe085c47bac0ef36455c9b
This commit is contained in:
Shane Smiskol
2022-07-25 19:08:56 -07:00
committed by GitHub
parent 512590034e
commit aedfdb5f23
+1 -1
View File
@@ -467,7 +467,7 @@ def get_fw_versions(logcan, sendcan, query_brand=None, extra=None, timeout=0.1,
for (addr, rx_addr), version in query.get_data(timeout).items():
f = car.CarParams.CarFw.new_message()
f.ecu = ecu_types[(r.brand, addr[0], addr[1])]
f.ecu = ecu_types.get((r.brand, addr[0], addr[1]), Ecu.unknown)
f.fwVersion = version
f.address = addr[0]
f.responseAddress = rx_addr