Skip to content

Commit

Permalink
fix static analysis (commaai#32082)
Browse files Browse the repository at this point in the history
fix ltl
  • Loading branch information
sshane authored Apr 2, 2024
1 parent fa5527f commit 72eb170
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion selfdrive/car/fw_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ def get_fw_versions(logcan, sendcan, query_brand: str = None, extra: OfflineFwVe
padding = max([len(fw.brand) for fw in fw_vers] or [0])
for version in fw_vers:
subaddr = None if version.subAddress == 0 else hex(version.subAddress)
print(f" Brand: {version.brand:{padding}}, bus: {version.bus}, OBD: {version.obdMultiplexing} - (Ecu.{version.ecu}, {hex(version.address)}, {subaddr}): [{version.fwVersion}]")
print(f" Brand: {version.brand:{padding}}, bus: {version.bus}, OBD: {version.obdMultiplexing} - " +
f"(Ecu.{version.ecu}, {hex(version.address)}, {subaddr}): [{version.fwVersion}]")
print("}")

print()
Expand Down

0 comments on commit 72eb170

Please sign in to comment.