Add shared CAN monitor sessions, protocol selection and HEX/DEC display

This commit is contained in:
2026-10-03 22:53:51 +03:00
parent 427fc70100
commit c7294830f9
3 changed files with 271 additions and 0 deletions

View File

@@ -259,3 +259,8 @@ def parse_hex(text: str) -> bytes:
def hex_str(data: bytes) -> str:
return " ".join("%02X" % b for b in data)
def raw_frame_text(data: bytes) -> str:
"""Show the same raw bytes in hexadecimal and decimal on separate lines."""
return hex_str(data) + "\n" + " ".join(str(byte) for byte in data)