MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _parse_hex

Method _parse_hex

display.py:1771–1776  ·  view source on GitHub ↗
(hex_str, fallback=(150, 200, 255))

Source from the content-addressed store, hash-verified

1769 rows.append(('LE/Clsc', f"{itf.get('le_count', 0)}/{itf.get('classic_count', 0)}"))
1770 else:
1771 rows.append(('Channels', itf.get('channel_count', 0)))
1772 # Age matters on a one-shot card — a stale scan shouldn't read as live.
1773 ts = res.get('timestamp')
1774 if isinstance(ts, (int, float)) and ts > 0:
1775 age = max(0, int(time.time() - ts))
1776 rows.append(('Age', f"{age}s" if age < 120 else f"{age // 60}m"))
1777 yy = self._draw_stat_rows(draw, y, rows)
1778
1779 # Strongest few neighbours as name/addr + signal bars — the same "who is

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected