From: Ramakrishnan Muthukrishnan Date: Wed, 8 Jun 2022 04:49:48 +0000 (+0530) Subject: slider should set gain, not attenuation X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/file/$top_link?a=commitdiff_plain;h=b4fea84627f7c122e267f670dbbc1a1b910c8d39;p=pihpsdr.git slider should set gain, not attenuation --- 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