mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-05 08:16:03 +08:00
Fix fw_versions.py --scan
old-commit-hash: 719e0572e1a6b202a21c2ee6f644c111a2273b83
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user