Skip to content

Commit

Permalink
show lpf/hpf filter configurations for Atlas in the radio dialog box
Browse files Browse the repository at this point in the history
In case automatic is selected, grey out filter selections.
  • Loading branch information
vu3rdd committed Jan 31, 2022
1 parent 4ff231b commit f869dca
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions radio_dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,17 @@ static void radio_dialog_update_controls() {
case SOAPY_DEVICE:
break;
#endif
case ATLAS:
gtk_widget_set_sensitive(adc0_antenna_combo_box, TRUE);
gtk_widget_set_sensitive(adc0_filters_combo_box, TRUE);
if(radio->adc[0].filters==AUTOMATIC) {
gtk_widget_set_sensitive(adc0_lpf_combo_box, FALSE);
gtk_widget_set_sensitive(adc0_hpf_combo_box, FALSE);
} else {
gtk_widget_set_sensitive(adc0_hpf_combo_box, TRUE);
gtk_widget_set_sensitive(adc0_lpf_combo_box, TRUE);
}
break;
default:
g_print("%s: defualt set_sensitive\n",__FUNCTION__);
gtk_widget_set_sensitive(adc0_antenna_combo_box, FALSE);
Expand Down

0 comments on commit f869dca

Please sign in to comment.