]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
experiment to control level via software
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Mon, 7 Nov 2022 11:54:46 +0000 (17:24 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Mon, 7 Nov 2022 11:54:46 +0000 (17:24 +0530)
old_protocol.c
transmitter.c

index b87b15198b0c77d44d8add0e7445c75d9fe9f6bd..56b6eaa1bc008ff6af558428db2ec0b87b2101cc 100644 (file)
@@ -1728,7 +1728,7 @@ void ozy_send_buffer() {
        /* } */
 
         output_buffer[C0]=0x12; /* addr[6:1] = 001001b */
-        output_buffer[C1]=power & 0xFF;
+        output_buffer[C1]=255 & 0xff; // power & 0xFF;
         output_buffer[C2]=0x00;
         output_buffer[C3]=0x00;
         output_buffer[C4]=0x00;
index ac2052027ebc0a6b9c4b536e5393e51189f89e1f..7c0d49cca6d4fcd9f122809f46d52c2314f9d1f3 100644 (file)
@@ -1028,8 +1028,8 @@ static void full_tx_buffer(TRANSMITTER *tx) {
   }
 
   if (isTransmitting()) {
-
-    if(radio->device==NEW_DEVICE_ATLAS && atlas_penelope) {
+    if((radio->device==NEW_DEVICE_ATLAS && atlas_penelope) ||
+       (radio->device == DEVICE_HERMES_LITE2)) { // radioberry
       //
       // On these boards, drive level changes are performed by
       // scaling the TX IQ samples. In the other cases, DriveLevel