]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Improved HermesLite2 PAenable/Tune/ATU bits
authorc vw <dl1ycf@darc.de>
Fri, 6 Nov 2020 08:24:06 +0000 (09:24 +0100)
committerc vw <dl1ycf@darc.de>
Fri, 6 Nov 2020 08:24:06 +0000 (09:24 +0100)
old_protocol.c

index 4c9345db8c7a8d73ae61cbdcfcfeac31c332010c..f5a5b2b435ee987690ab4e721358b63626f3d4c0 100644 (file)
@@ -1726,9 +1726,11 @@ static int last_power=0;
           output_buffer[C2]|=0x10;
         }
         if (device==DEVICE_HERMES_LITE2) {
-          // do not set Apollo/Alex bits,
-          // but set ADDR=0x09 bits 18(always), 19(pa enable), 20(tune)
-          output_buffer[C2]= 0x04;
+          // do not set any Apollo/Alex bits,
+          // ADDR=0x09 bit 19 follows "PA enable" state
+          // ADDR=0x09 bit 20 follows "TUNE" state
+          // ADDR=0x09 bit 18 always cleared (external tuner enabled)
+          output_buffer[C2]= 0x00;
           if (pa_enabled) output_buffer[C2] |= 0x08;
           if (tune)       output_buffer[C2] |= 0x10;
         }