From 256785df86dfcd9befe5b89a30ab192646325a17 Mon Sep 17 00:00:00 2001 From: c vw Date: Tue, 20 Jul 2021 17:37:26 +0200 Subject: [PATCH] removed CW options --- configure.c | 78 ----------------------------------------------------- 1 file changed, 78 deletions(-) diff --git a/configure.c b/configure.c index 8f7cfc2..244f524 100644 --- a/configure.c +++ b/configure.c @@ -333,84 +333,6 @@ void configure_gpio(GtkWidget *parent) { gtk_notebook_append_page(GTK_NOTEBOOK(notebook),grid,gtk_label_new("i2c")); } -#ifdef LOCALCW - // - // Controller2 V2 uses *all* available GPIO lines, therefore we cannot - // present this tab. - // Accept "-1" as GPIO line, this means "do not use" - // - if(controller !=CONTROLLER2_V2) { - char text[64]; - grid=gtk_grid_new(); - gtk_grid_set_column_homogeneous(GTK_GRID(grid),FALSE); - gtk_grid_set_row_homogeneous(GTK_GRID(grid),TRUE); - gtk_grid_set_column_spacing (GTK_GRID(grid),10); - gtk_grid_set_row_spacing (GTK_GRID(grid),2); - - row=0; - col=0; - - widget=gtk_label_new(NULL); - gtk_label_set_markup(GTK_LABEL(widget),"CW function"); - gtk_grid_attach(GTK_GRID(grid),widget,col,row,1,1); - col++; - - widget=gtk_label_new(NULL); - gtk_label_set_markup(GTK_LABEL(widget),"Gpio"); - gtk_widget_show(widget); - gtk_grid_attach(GTK_GRID(grid),widget,col,row,1,1); - col++; - - row++; - col=0; - - widget=gtk_label_new(NULL); - g_sprintf(text,"Left Paddle",i); - gtk_label_set_markup (GTK_LABEL(widget), text); - gtk_grid_attach(GTK_GRID(grid),widget,col,row,1,1); - col++; - - widget=gtk_spin_button_new_with_range (-1.0,28.0,1.0); - gtk_spin_button_set_value (GTK_SPIN_BUTTON(widget), switches_cw[0].switch_address); - gtk_grid_attach(GTK_GRID(grid),widget,col,row,1,1); - - row++; - col=0; - - widget=gtk_label_new(NULL); - g_sprintf(text,"Right Paddle",i); - gtk_label_set_markup (GTK_LABEL(widget), text); - gtk_grid_attach(GTK_GRID(grid),widget,col,row,1,1); - col++; - - widget=gtk_spin_button_new_with_range (-1.0,28.0,1.0); - gtk_spin_button_set_value (GTK_SPIN_BUTTON(widget), switches_cw[1].switch_address); - gtk_grid_attach(GTK_GRID(grid),widget,col,row,1,1); - - row++; - col=0; - - widget=gtk_label_new(NULL); - g_sprintf(text,"Sidetone output",i); - gtk_label_set_markup (GTK_LABEL(widget), text); - gtk_grid_attach(GTK_GRID(grid),widget,col,row,1,1); - col++; - - widget=gtk_spin_button_new_with_range (-1.0,28.0,1.0); - gtk_spin_button_set_value (GTK_SPIN_BUTTON(widget), switches_cw[2].switch_address); - gtk_grid_attach(GTK_GRID(grid),widget,col,row,1,1); - - row++; - col=0; - - widget=gtk_label_new(NULL); - g_sprintf(text,"Set GPIO number to -1 if unused.",i); - gtk_label_set_markup (GTK_LABEL(widget), text); - gtk_grid_attach(GTK_GRID(grid),widget,col,row,2,1); - - gtk_notebook_append_page(GTK_NOTEBOOK(notebook),grid,gtk_label_new("CW")); - } -#endif gtk_container_add(GTK_CONTAINER(content),notebook); gtk_widget_show_all(dialog); -- 2.45.2