From: Ramakrishnan Muthukrishnan Date: Sat, 22 Jan 2022 13:24:38 +0000 (+0530) Subject: fix meter issues X-Git-Url: https://git.rkrishnan.org/components/vdrive/$sch_link?a=commitdiff_plain;h=9e39e79d3d040ee768a4a0cbfa5b21e7e8ae1a39;p=pihpsdr.git fix meter issues --- diff --git a/meter.c b/meter.c index 4bad5d7..e5e9cce 100644 --- a/meter.c +++ b/meter.c @@ -192,7 +192,7 @@ if(analog_meter) { switch(meter_type) { case SMETER: { - double offset = with_gain ? 0 : adc[rx->adc].attenuation; + double offset = with_gain ? adc[rx->adc].attenuation : 0; if(have_rx_gain) { level = value + rx_gain_calibration - offset; } else {