()
| 3389 | ctx.fillText(tag, r24.x0 + 3, yR - 5); |
| 3390 | } else if (sel) { |
| 3391 | ctx.fillStyle = '#f5d0fe'; ctx.font = 'bold 10px sans-serif'; ctx.textAlign = 'left'; |
| 3392 | ctx.fillText(`${sel.addr} — RSSI not heard this sniff`, r24.x0 + 3, g.padT + 26); |
| 3393 | } |
| 3394 | } |
| 3395 | |
| 3396 | // Draw Zigbee channel markers (11–26) on the 2.4 GHz segment: a labelled tick |
| 3397 | // per occupied channel, intensity by activity, plus a selected-device RSSI line. |
| 3398 | function _wifiDrawZbOverlay(ctx, r24, xFor, g) { |
| 3399 | const i = (_wifiState.zb.interference) || {}; |
| 3400 | const baseY = g.H - g.padB; |
| 3401 | const zbX = (freqMhz) => { |
| 3402 | const chFrac = (freqMhz - 2407) / 5; |
| 3403 | return Math.max(r24.x0 + 2, Math.min(r24.x1 - 2, xFor('2.4', chFrac))); |
| 3404 | }; |
| 3405 | const sel = _wifiState.zbSelected |
| 3406 | ? (_wifiState.zb.devices || []).find(v => (v.addr || v.short_addr) === _wifiState.zbSelected) |
| 3407 | : null; |
| 3408 | const dim = sel ? 0.35 : 1.0; |
| 3409 | // Per-channel markers (amber), height scaled by intensity. |
| 3410 | (i.markers || []).forEach(m => { |
| 3411 | if (!m.freq_mhz) return; |
nothing calls this directly
no test coverage detected