feat: enhance waveform viewer with record type handling and improved empty state messaging
This commit is contained in:
@@ -838,7 +838,9 @@ def _extract_record_type(data: bytes) -> Optional[str]:
|
||||
code = data[1]
|
||||
if code == 0x10:
|
||||
return "Waveform"
|
||||
# TODO: add histogram sub_code once a histogram event is captured with debug=true
|
||||
# Unknown code — log it so we can identify histogram/noise sub_codes from real captures
|
||||
log.warning("_extract_record_type: unknown sub_code=0x%02X — returning raw string", code)
|
||||
return f"Unknown(0x{code:02X})"
|
||||
return None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user