From: John Melton G0ORX Date: Fri, 5 Mar 2021 11:31:37 +0000 (+0000) Subject: Fixed SOAPYSDR reference X-Git-Url: https://git.rkrishnan.org/%5B/frontends/using.html?a=commitdiff_plain;h=a802a1df0f0640fd4ade28ee561971365a7fbf1f;p=pihpsdr.git Fixed SOAPYSDR reference --- diff --git a/sliders.c b/sliders.c index 549ab20..0ffef50 100644 --- a/sliders.c +++ b/sliders.c @@ -855,13 +855,17 @@ fprintf(stderr,"sliders_init: width=%d height=%d\n", width,height); gtk_widget_override_font(rf_gain_label, pango_font_description_from_string("Sans 10")); gtk_widget_show(rf_gain_label); gtk_grid_attach(GTK_GRID(sliders),rf_gain_label,6,0,1,1); +#ifdef SOAPYSDR if(protocol==SOAPYSDR_PROTOCOL) { rf_gain_scale=gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL,adc[0].min_gain, adc[0].max_gain, 1.0); 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_attenuation[active_receiver->adc]); +#ifdef SOAPYSDR } +#endif gtk_widget_override_font(rf_gain_scale, pango_font_description_from_string("Sans 10")); gtk_range_set_increments (GTK_RANGE(rf_gain_scale),1.0,1.0); gtk_widget_show(rf_gain_scale);