From b4fea84627f7c122e267f670dbbc1a1b910c8d39 Mon Sep 17 00:00:00 2001
From: Ramakrishnan Muthukrishnan <ram@leastauthority.com>
Date: Wed, 8 Jun 2022 10:19:48 +0530
Subject: [PATCH] slider should set gain, not attenuation

---
 sliders.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sliders.c b/sliders.c
index 694a061..70ae9c1 100644
--- a/sliders.c
+++ b/sliders.c
@@ -859,8 +859,8 @@ fprintf(stderr,"sliders_init: width=%d height=%d\n", width,height);
       gtk_range_set_value (GTK_RANGE(rf_gain_scale),adc[0].gain);
     } else {
 #endif
-      rf_gain_scale=gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL,-12.0, 48.0, 1.0);
-      gtk_range_set_value (GTK_RANGE(rf_gain_scale),adc[active_receiver->adc].attenuation);
+      rf_gain_scale=gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, -12.0, 48.0, 1.0);
+      gtk_range_set_value (GTK_RANGE(rf_gain_scale),adc[active_receiver->adc].gain);
 #ifdef SOAPYSDR
     }
 #endif
-- 
2.45.2