From: Ramakrishnan Muthukrishnan Date: Mon, 7 Nov 2022 11:54:46 +0000 (+0530) Subject: experiment to control level via software X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/file/$top_link?a=commitdiff_plain;h=39b3d79ed6acadace938b3c020b71e9a0340c549;p=pihpsdr.git experiment to control level via software --- diff --git a/old_protocol.c b/old_protocol.c index b87b151..56b6eaa 100644 --- a/old_protocol.c +++ b/old_protocol.c @@ -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; diff --git a/transmitter.c b/transmitter.c index ac20520..7c0d49c 100644 --- a/transmitter.c +++ b/transmitter.c @@ -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