projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b863b3e
)
possible fix
author
Ramakrishnan Muthukrishnan
<ram@rkrishnan.org>
Fri, 14 Jan 2022 10:19:32 +0000
(15:49 +0530)
committer
Ramakrishnan Muthukrishnan
<ram@rkrishnan.org>
Fri, 14 Jan 2022 10:19:32 +0000
(15:49 +0530)
rigctl.c
patch
|
blob
|
history
diff --git
a/rigctl.c
b/rigctl.c
index 25304b0bf78fb5ba6c8a622c0ee8a8073220e4ac..66031b972387cb77b8d39e17f5148a4ec6c0f049 100644
(file)
--- a/
rigctl.c
+++ b/
rigctl.c
@@
-3465,7
+3465,7
@@
int parse_cmd(void *data) {
if (have_rx_gain) {
att = adc[active_receiver->adc].attenuation + 12.0;
printf("after stage 1: %f\n", att);
- att = round(
att / 60.0) * 99.0
;
+ att = round(
(att * (99.0 / 60.0))
;
printf("after stage 2: %f\n", att);
} else {
att = adc[active_receiver->adc].attenuation;