Add shared CAN monitor sessions, protocol selection and HEX/DEC display
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user