projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ed7e14
)
Revert "af gain: for now, directly change receiver[0]'s gain"
author
Ramakrishnan Muthukrishnan
<ram@rkrishnan.org>
Tue, 11 Jan 2022 16:27:02 +0000
(21:57 +0530)
committer
Ramakrishnan Muthukrishnan
<ram@rkrishnan.org>
Tue, 11 Jan 2022 16:27:02 +0000
(21:57 +0530)
This reverts commit
9ed7e1480ea9d3b7398aff5b0591aa94becf2cbe
.
rigctl.c
patch
|
blob
|
history
diff --git
a/rigctl.c
b/rigctl.c
index 2040982d9a0c2c39fc5a730204a72a60a1246a85..100c98fad7d8c5d2120242eba9cf057513be9c19 100644
(file)
--- a/
rigctl.c
+++ b/
rigctl.c
@@
-953,12
+953,12
@@
gboolean parse_extended_cmd(char *command, CLIENT *client) {
// read/set audio gain
if (command[4] == ';') {
// send reply back
- sprintf(reply, "ZZAG%03d;", (int)(
receiver[0]
->volume * 100.0));
+ sprintf(reply, "ZZAG%03d;", (int)(
active_receiver
->volume * 100.0));
send_resp(client->fd, reply);
} else if (command[7] == ';') {
command[7] = '\0';
int gain = atoi(&command[4]);
-
receiver[0]
->volume = (double)gain / 100.0;
+
active_receiver
->volume = (double)gain / 100.0;
update_af_gain();
}
break;