Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using Atlas, select Alex filters as the default #116

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions radio_dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ static void radio_dialog_update_controls() {
radio->filter_board=N2ADR;
break;
case ATLAS:
radio->filter_board=ALEX;
break;
case HERMES:
case HERMES_2:
case ANGELIA:
Expand Down Expand Up @@ -178,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