From 39b3d79ed6acadace938b3c020b71e9a0340c549 Mon Sep 17 00:00:00 2001
From: Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
Date: Mon, 7 Nov 2022 17:24:46 +0530
Subject: [PATCH] experiment to control level via software

---
 old_protocol.c | 2 +-
 transmitter.c  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

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
-- 
2.45.2