diff --git a/modules/web/fm95.html b/modules/web/fm95.html
index 105ffdf..19e7d6a 100644
--- a/modules/web/fm95.html
+++ b/modules/web/fm95.html
@@ -124,18 +124,6 @@
Automatic gain control · linear
-
-
Input Level
-
—
-
-
Incoming signal level · linear raw
-
-
-
Audio Level
-
—
-
-
Output audio level · linear raw
-
@@ -178,8 +166,6 @@ const FIELD_CFG = {
mpx_power: { unit:'dB', fmt: v=>v.toFixed(2), bar: v=>Math.max(0,Math.min(100,(v/3)*100)), warn: v=>v>3 },
bs412_gain: { unit:'', fmt: v=>v.toFixed(4), bar: v=>Math.max(0,Math.min(100,v*50)), warn: v=>v>2 },
agc_gain: { unit:'', fmt: v=>v.toFixed(4), bar: v=>Math.max(0,Math.min(100,v*50)), warn: v=>v>2 },
- input_level: { unit:'', fmt: v=>v.toFixed(5), bar: v=>Math.max(0,Math.min(100,v*100)), warn: v=>v>0.95 },
- audio_level: { unit:'', fmt: v=>v.toFixed(5), bar: v=>Math.max(0,Math.min(100,v*100)), warn: v=>v>0.95 },
};
// --- Oscilloscope state ---
@@ -300,11 +286,13 @@ function updateUI(values) {
values.forEach((v, i) => {
const key = FIELDS[i];
const cfg = FIELD_CFG[key];
- const el = document.getElementById(key);
- const bar = document.getElementById('bar_' + key);
- el.innerHTML = `${cfg.fmt(v)}${cfg.unit ? `${cfg.unit}` : ''}`;
- bar.style.width = cfg.bar(v) + '%';
- bar.style.background = cfg.warn(v) ? '#ef4444' : '';
+ if(cfg) {
+ const el = document.getElementById(key);
+ const bar = document.getElementById('bar_' + key);
+ el.innerHTML = `${cfg.fmt(v)}${cfg.unit ? `${cfg.unit}` : ''}`;
+ bar.style.width = cfg.bar(v) + '%';
+ bar.style.background = cfg.warn(v) ? '#ef4444' : '';
+ }
});
// push to oscilloscope history