projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee0c007
)
transmit or receive, do not alter the Rx gain
author
Ramakrishnan Muthukrishnan
<ram@leastauthority.com>
Wed, 8 Jun 2022 04:48:04 +0000
(10:18 +0530)
committer
Ramakrishnan Muthukrishnan
<ram@leastauthority.com>
Wed, 8 Jun 2022 05:05:44 +0000
(10:35 +0530)
old_protocol.c
patch
|
blob
|
history
diff --git
a/old_protocol.c
b/old_protocol.c
index cfc87c6b633f8fa955e956aa8439ac003b6e74bd..e84da5ce1b24588c6326dc00757bb1e1fe93d528 100644
(file)
--- a/
old_protocol.c
+++ b/
old_protocol.c
@@
-1792,7
+1792,8
@@
static int last_power=0;
if (rxgain > 60) rxgain=60;
// encode all 6 bits of RXgain in ATT value and set bit6
if (isTransmitting()) {
- output_buffer[C4] = 0x40 | (33 - (transmitter->attenuation & 0x1F));
+ // output_buffer[C4] = 0x40 | (33 - (transmitter->attenuation & 0x1F));
+ output_buffer[C4] = 0x40 | (rxgain & 0x3F);
} else {
output_buffer[C4] = 0x40 | (rxgain & 0x3F);
}