This commit is contained in:
2026-05-10 11:03:03 +02:00
parent cff1aa97ad
commit b3e61af175
+3 -3
View File
@@ -164,8 +164,8 @@ const POLL_MSG = JSON.stringify({ action: "fm95", data: "/w==" });
const FIELDS = ['mpx_power','bs412_gain','agc_gain','input_level','audio_level'];
const FIELD_CFG = {
mpx_power: { unit:'dB', fmt: v=>v.toFixed(3), bar: v=>Math.max(0,Math.min(100,(v/3)*100)), warn: v=>v>3 },
bs412_gain: { unit:'x', fmt: v=>v.toFixed(4), bar: v=>Math.max(0,Math.min(100,v*100)), warn: v=>v>2 },
agc_gain: { unit:'x', fmt: v=>v.toFixed(4), bar: v=>Math.max(0,Math.min(100,v*100)), warn: v=>v>2 },
bs412_gain: { unit:'x', fmt: v=>v.toFixed(4), bar: v=>Math.max(0,Math.min(100,v*10)), warn: v=>v>2 },
agc_gain: { unit:'x', fmt: v=>v.toFixed(4), bar: v=>Math.max(0,Math.min(100,v*10)), warn: v=>v>2 },
};
// --- Oscilloscope state ---
@@ -326,7 +326,7 @@ function connect() {
ws.addEventListener('open', () => {
setStatus('connected', 'Connected');
poll();
pollTimer = setInterval(poll, 50 + (Math.random() * 50));
pollTimer = setInterval(poll, 70 + (Math.random() * 30));
});
ws.addEventListener('message', e => {
try {