]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
slider should set gain, not attenuation
authorRamakrishnan Muthukrishnan <ram@leastauthority.com>
Wed, 8 Jun 2022 04:49:48 +0000 (10:19 +0530)
committerRamakrishnan Muthukrishnan <ram@leastauthority.com>
Wed, 8 Jun 2022 05:05:44 +0000 (10:35 +0530)
sliders.c

index 694a0619df6117c17e8f417ebe708df7599fe2ce..70ae9c1666cc93766be1ca635ac7f87c299b8af8 100644 (file)
--- 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