]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
transmit or receive, do not alter the Rx gain
authorRamakrishnan Muthukrishnan <ram@leastauthority.com>
Wed, 8 Jun 2022 04:48:04 +0000 (10:18 +0530)
committerRamakrishnan Muthukrishnan <ram@leastauthority.com>
Wed, 8 Jun 2022 05:05:44 +0000 (10:35 +0530)
old_protocol.c

index cfc87c6b633f8fa955e956aa8439ac003b6e74bd..e84da5ce1b24588c6326dc00757bb1e1fe93d528 100644 (file)
@@ -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);
           }