mirror of
https://github.com/smittix/intercept.git
synced 2026-05-04 19:29:12 -07:00
fix(wifi_locate): read correct RSSI field from SSE network events
Backend sends rssi_current but frontend was reading net.signal || net.rssi, causing RSSI to parse as NaN and silently skipping all meter/audio updates. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -189,7 +189,7 @@ const WiFiLocate = (function() {
|
||||
const net = data.network;
|
||||
const bssid = (net.bssid || '').toUpperCase();
|
||||
if (bssid === targetBssid) {
|
||||
const rssi = parseInt(net.signal || net.rssi, 10);
|
||||
const rssi = parseInt(net.rssi_current ?? net.signal ?? net.rssi, 10);
|
||||
if (!isNaN(rssi)) {
|
||||
// Pick up SSID if we don't have it yet
|
||||
if (!targetSsid && net.essid) {
|
||||
|
||||
Reference in New Issue
Block a user