]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Cleanup of the "Hermeslite2 Apollo bits"
authorc vw <dl1ycf@darc.de>
Tue, 3 Nov 2020 15:52:34 +0000 (16:52 +0100)
committerc vw <dl1ycf@darc.de>
Tue, 3 Nov 2020 15:52:34 +0000 (16:52 +0100)
old_protocol.c

index 6046fa14c4bf172d0426da328f7454750697a3de..c66d5009e2ce76139504660d7c58d05202b08320 100644 (file)
@@ -1703,14 +1703,18 @@ static int last_power=0;
         if(mic_linein) {
           output_buffer[C2]|=0x02;
         }
-        if(filter_board==APOLLO || device==DEVICE_HERMES_LITE2) {
-          output_buffer[C2]|=0x24;
+        if(filter_board==APOLLO) {
+          output_buffer[C2]|=0x2C;
         }
         if((filter_board==APOLLO) && tune) {
           output_buffer[C2]|=0x10;
         }
-        if((device==DEVICE_HERMES_LITE2) && pa_enabled) {
-          output_buffer[C2]|=0x08; // Enable PA
+        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;
+          if (pa_enabled) output_buffer[C2] |= 0x08;
+          if (tune)       output_buffer[C2] |= 0x10;
         } 
         if(band_get_current()==band6) {
           output_buffer[C3]=output_buffer[C3]|0x40; // Alex 6M low noise amplifier