]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Fixed SOAPYSDR reference
authorJohn Melton G0ORX <john.d.melton@googlemail.com>
Fri, 5 Mar 2021 11:31:37 +0000 (11:31 +0000)
committerJohn Melton G0ORX <john.d.melton@googlemail.com>
Fri, 5 Mar 2021 11:31:37 +0000 (11:31 +0000)
sliders.c

index 549ab20afa9485b4c34a1eb8149bb32884d02ae6..0ffef505e05f82bab238a54f004622b51e7ef598 100644 (file)
--- 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);