]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
fix meter issues
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Sat, 22 Jan 2022 13:24:38 +0000 (18:54 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Sat, 22 Jan 2022 13:24:38 +0000 (18:54 +0530)
meter.c

diff --git a/meter.c b/meter.c
index 4bad5d789177318799dcc5ba0dceabfefb591a83..e5e9cce53524cd86f271b4ae88246d970da8f6c1 100644 (file)
--- 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 {