Fix fw_versions.py --scan

old-commit-hash: 719e0572e1
commatwo_master
Willem Melching 5 years ago
parent 559d3e4f50
commit 2bde267e84
  1. 4
      selfdrive/car/fw_versions.py

@ -189,7 +189,8 @@ if __name__ == "__main__":
print() print()
t = time.time() t = time.time()
candidates, fw_vers = get_fw_versions(logcan, sendcan, 1, extra=extra, debug=args.debug, progress=True) fw_vers = get_fw_versions(logcan, sendcan, 1, extra=extra, debug=args.debug, progress=True)
candidates = match_fw_to_car(fw_vers)
print() print()
print("Found FW versions") print("Found FW versions")
@ -199,7 +200,6 @@ if __name__ == "__main__":
print(f" (Ecu.{version.ecu}, {hex(version.address)}, {subaddr}): [{version.fwVersion}]") print(f" (Ecu.{version.ecu}, {hex(version.address)}, {subaddr}): [{version.fwVersion}]")
print("}") print("}")
print() print()
print("Possible matches:", candidates) print("Possible matches:", candidates)
print("Getting fw took %.3f s" % (time.time() - t)) print("Getting fw took %.3f s" % (time.time() - t))

Loading…
Cancel
Save