From: Ramakrishnan Muthukrishnan <ram@leastauthority.com>
Date: Wed, 8 Jun 2022 04:48:22 +0000 (+0530)
Subject: default rx gain
X-Git-Url: https://git.rkrishnan.org/vdrive/%22file:/frontends/class-simplejson.JSONEncoder.html?a=commitdiff_plain;h=349f7b1f45792ee77171df0b73105e77c9bb10dd;p=pihpsdr.git

default rx gain
---

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;