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:
Smittix
2026-03-12 10:27:12 +00:00
parent aa787f0b53
commit 05412fbfc3

View File

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