feat: enhance waveform viewer with record type handling and improved empty state messaging

This commit is contained in:
Brian Harrison
2026-04-03 15:22:26 -04:00
parent e4730376ad
commit f495b91d8a
3 changed files with 33 additions and 14 deletions

View File

@@ -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