From: Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
Date: Fri, 14 Jan 2022 09:58:53 +0000 (+0530)
Subject: more tweaking
X-Git-Url: https://git.rkrishnan.org/frontends/specifications/...?a=commitdiff_plain;h=bd2de75d323cba08af16f4dde8b98f66c7f5921b;p=pihpsdr.git

more tweaking
---

diff --git a/rigctl.c b/rigctl.c
index 9b433af..5df1219 100644
--- a/rigctl.c
+++ b/rigctl.c
@@ -3463,9 +3463,9 @@ int parse_cmd(void *data) {
       if (command[2] == ';') {
         double att = 0.0;
         if (have_rx_gain) {
-          att = adc[active_receiver->adc].attenuation;
+          att = adc[active_receiver->adc].attenuation + 12.0;
           printf("after stage 1: %f\n", att);
-          att = round(((att + 12.0) * 99.0) / 60.0);
+          att = round(att / 60.0) * 99.0;
           printf("after stage 2: %f\n", att);
         } else {
           att = adc[active_receiver->adc].attenuation;