From 349f7b1f45792ee77171df0b73105e77c9bb10dd Mon Sep 17 00:00:00 2001
From: Ramakrishnan Muthukrishnan <ram@leastauthority.com>
Date: Wed, 8 Jun 2022 10:18:22 +0530
Subject: [PATCH] default rx gain

---
 radio.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/radio.c b/radio.c
index 86c9a74..575078e 100644
--- a/radio.c
+++ b/radio.c
@@ -1150,11 +1150,11 @@ void start_radio() {
     adc[0].max_gain=+48.0;
   }
 
-  /* if (have_rx_gain) { */
-  /*   adc[0].attenuation = 14; */
-  /* } else { */
-  /*   adc[0].attenuation = 0; */
-  /* } */
+  if (have_rx_gain) {
+    adc[0].gain = 14.0;
+  } else {
+    adc[0].attenuation = 0;
+  }
 
 #ifdef SOAPYSDR
   adc[0].antenna = 0;
-- 
2.45.2