]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
very small change
authorDL1YCF <dl1ycf@darc.de>
Sat, 10 Oct 2020 13:13:44 +0000 (15:13 +0200)
committerDL1YCF <dl1ycf@darc.de>
Sat, 10 Oct 2020 13:13:44 +0000 (15:13 +0200)
sliders.c

index a5b6cbac673a6263e52762dccc450b7da9d4fe17..a13eb3ba1a80fcb2dd650c6bc2372b2e4dd7c45b 100644 (file)
--- a/sliders.c
+++ b/sliders.c
@@ -246,7 +246,7 @@ static gboolean load_att_type_cb(gpointer data) {
 
 static void c25_att_combobox_changed(GtkWidget *widget, gpointer data) {
   int val = atoi(gtk_combo_box_get_active_id(GTK_COMBO_BOX(widget)));
-  if (active_receiver->id == 0) {
+  if (active_receiver->adc == 0) {
     // this button is only valid for the first receiver
     // store attenuation, such that in meter.c the correct level is displayed
     adc_attenuation[active_receiver->adc] = 12*val;