From: Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
Date: Sun, 5 Nov 2023 16:10:57 +0000 (+0530)
Subject: debug rx gain when in transverter mode
X-Git-Url: https://git.rkrishnan.org/pf/content/en/install.html?a=commitdiff_plain;h=2f36ccf70cbdc2402e794fc302e6fe330f79747c;p=pihpsdr.git

debug rx gain when in transverter mode
---

diff --git a/rigctl.c b/rigctl.c
index 7230dd0..0a70cab 100644
--- a/rigctl.c
+++ b/rigctl.c
@@ -3529,8 +3529,10 @@ int parse_cmd(void *data) {
             if (command[2] == ';') {
                 double att = 0.0;
                 if (have_rx_gain) {
+		    fprintf(stderr, "1: rcvr gain: %f\n", adc[active_receiver->adc].gain);
                     att = adc[active_receiver->adc].gain + 12.0;
                 } else {
+		    fprintf(stderr, "2: rcvr attn: %f\n", adc[active_receiver->adc].attenuation);
                     att = adc[active_receiver->adc].attenuation;
                     att = round((att * 99.0) / 31.0);
                 }