projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d98a615
)
no need to round the value being set
author
Ramakrishnan Muthukrishnan
<ram@rkrishnan.org>
Wed, 12 Jan 2022 07:32:12 +0000
(13:02 +0530)
committer
Ramakrishnan Muthukrishnan
<ram@rkrishnan.org>
Wed, 12 Jan 2022 07:32:12 +0000
(13:02 +0530)
rigctl.c
patch
|
blob
|
history
diff --git
a/rigctl.c
b/rigctl.c
index 9390919f9e1717b4874bc343e56e78adc0b2c182..bcf3eaf42f51e600fe297adf175e45d71be69519 100644
(file)
--- a/
rigctl.c
+++ b/
rigctl.c
@@
-1827,7
+1827,7
@@
gboolean parse_extended_cmd(char *command, CLIENT *client) {
} else if (command[7] == ';') {
command[7] = '\0';
double gain = (double)strtol(&command[4], NULL, 10);
- gain =
round((gain * 62.0 / 100.0) - 12.0)
;
+ gain =
(gain * 62.0 / 100.0) - 12.0
;
set_mic_gain(gain);
}
break;