]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Corrected interplay of "pa_enabled" and "band->disablePA".
authorc vw <dl1ycf@darc.de>
Mon, 15 Nov 2021 12:46:10 +0000 (13:46 +0100)
committerc vw <dl1ycf@darc.de>
Mon, 15 Nov 2021 12:46:10 +0000 (13:46 +0100)
new_protocol.c
old_protocol.c

index d6bac9d971cbf2301ae08f188837cc6a948ea334..ef29042db9c1f34369f9914b0fe0a5ef30833fe2 100644 (file)
@@ -692,7 +692,7 @@ static void new_protocol_general() {
     general_buffer[37]=0x08;  //  phase word (not frequency)
     general_buffer[38]=0x01;  //  enable hardware timer
 
-    if(band->disablePA) {
+    if(!pa_enabled || band->disablePA) {
       general_buffer[58]=0x00;
     } else {
       general_buffer[58]=0x01;  // enable PA
index 02b183a168f7e5c9ba45ce3eaae574461d0d12cf..3ece71222286366ad7181b64382a671ed6222a03 100644 (file)
@@ -1628,8 +1628,8 @@ void ozy_send_buffer() {
           output_buffer[C2]= 0x00;
           output_buffer[C3]= 0x00;
           output_buffer[C4]= 0x00;
-          if (pa_enabled || txband->disablePA) output_buffer[C2] |= 0x08;
-          if (tune)                            output_buffer[C2] |= 0x10;
+          if (pa_enabled && !txband->disablePA) output_buffer[C2] |= 0x08;
+          if (tune)                             output_buffer[C2] |= 0x10;
         }
         command=4;
         break;