[PATCH 2/3] - Incorrect gain clipping when setting attenuation - Verified working with a git build of GQRX

Kieren Rasmussen rascustoms at gmail.com
Thu Aug 23 14:29:49 UTC 2018


From: Kieren Rasmussen <kieren at wolftechpc.com.au>

---
 lib/airspyhf/airspyhf_source_c.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/airspyhf/airspyhf_source_c.cc b/lib/airspyhf/airspyhf_source_c.cc
index e4dbe5f..b2965ff 100644
--- a/lib/airspyhf/airspyhf_source_c.cc
+++ b/lib/airspyhf/airspyhf_source_c.cc
@@ -495,7 +495,7 @@ double airspyhf_source_c::set_lna_gain( double gain, size_t chan )
 double airspyhf_source_c::set_att_gain( double gain, size_t chan )
 {
   int ret = AIRSPYHF_SUCCESS;
-  osmosdr::gain_range_t gains = get_gain_range( "LNA", chan );
+  osmosdr::gain_range_t gains = get_gain_range( "ATT", chan );
 
   if (_dev) {
     double clip_gain = gains.clip( gain, true );
-- 
2.18.0



More information about the osmocom-sdr mailing list