projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29b1932
)
null the end of string
author
Ramakrishnan Muthukrishnan
<ram@rkrishnan.org>
Tue, 11 Jan 2022 14:51:19 +0000
(20:21 +0530)
committer
Ramakrishnan Muthukrishnan
<ram@rkrishnan.org>
Tue, 11 Jan 2022 14:51:19 +0000
(20:21 +0530)
rigctl.c
patch
|
blob
|
history
diff --git
a/rigctl.c
b/rigctl.c
index 99cd2196b81a3d5a260ff8e7a42c1840439bd162..100c98fad7d8c5d2120242eba9cf057513be9c19 100644
(file)
--- a/
rigctl.c
+++ b/
rigctl.c
@@
-955,7
+955,7
@@
gboolean parse_extended_cmd(char *command, CLIENT *client) {
// send reply back
sprintf(reply, "ZZAG%03d;", (int)(active_receiver->volume * 100.0));
send_resp(client->fd, reply);
- } else {
+ } else
if (command[7] == ';')
{
command[7] = '\0';
int gain = atoi(&command[4]);
active_receiver->volume = (double)gain / 100.0;