From e6cbe71820c2ba89d1cf2d25f19d825b39e87c65 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sun, 10 May 2026 10:49:23 +0200 Subject: [PATCH] adjus warnings --- modules/web/fm95.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/web/fm95.html b/modules/web/fm95.html index e0c77b4..220c70b 100644 --- a/modules/web/fm95.html +++ b/modules/web/fm95.html @@ -175,9 +175,9 @@ 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(2), bar: v=>Math.max(0,Math.min(100,((v+40)/40)*100)), warn: v=>v>-1 }, - bs412_gain: { unit:'', fmt: v=>v.toFixed(4), bar: v=>Math.max(0,Math.min(100,v*50)), warn: v=>v>1.9 }, - agc_gain: { unit:'', fmt: v=>v.toFixed(4), bar: v=>Math.max(0,Math.min(100,v*50)), warn: v=>v>1.9 }, + 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 }, };