mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 18:12:05 +08:00
fw_versions: fix ECU scanning (#25283)
Fix when scanning old-commit-hash: 5a6b0a9f4ca065a14abe085c47bac0ef36455c9b
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user