projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ade1f3
)
debug rx gain when in transverter mode
debug
author
Ramakrishnan Muthukrishnan
<ram@rkrishnan.org>
Sun, 5 Nov 2023 16:10:57 +0000
(21:40 +0530)
committer
Ramakrishnan Muthukrishnan
<ram@rkrishnan.org>
Sun, 5 Nov 2023 16:10:57 +0000
(21:40 +0530)
rigctl.c
patch
|
blob
|
history
diff --git
a/rigctl.c
b/rigctl.c
index 7230dd052e9ad016472105a3e81d33c480293b63..0a70cab59974dd844edd9799291257edc4fb34e7 100644
(file)
--- 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);
}