Fix fw_versions.py --scan

This commit is contained in:
Willem Melching 2020-02-06 10:58:18 -08:00
parent 0ad5715255
commit 719e0572e1

View file

@ -189,7 +189,8 @@ if __name__ == "__main__":
print()
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("Found FW versions")
@ -199,7 +200,6 @@ if __name__ == "__main__":
print(f" (Ecu.{version.ecu}, {hex(version.address)}, {subaddr}): [{version.fwVersion}]")
print("}")
print()
print("Possible matches:", candidates)
print("Getting fw took %.3f s" % (time.time() - t))