debug_fw_fingerprinting_offline.py: better formatting

pull/34628/head
Shane Smiskol 2 months ago
parent 0f5f3c4cb2
commit f2fb0b92ad
  1. 2
      selfdrive/debug/debug_fw_fingerprinting_offline.py

@ -36,7 +36,7 @@ def main(route: str | None, addrs: list[int]):
if msg.logMonoTime != prev_mono_time: if msg.logMonoTime != prev_mono_time:
print() print()
prev_mono_time = msg.logMonoTime prev_mono_time = msg.logMonoTime
print(f"{msg.which():>7}: rxaddr={can.address}, bus={can.src}, {round((msg.logMonoTime - start_mono_time) * 1e-6, 2)} ms, " + print(f"{msg.which():>7}: rxaddr={can.address}, bus={str(can.src) + ',':<4} {round((msg.logMonoTime - start_mono_time) * 1e-6)} ms, " +
f"0x{can.dat.hex()}, {can.dat}, {len(can.dat)=}") f"0x{can.dat.hex()}, {can.dat}, {len(can.dat)=}")

Loading…
Cancel
Save