]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Make this "safe" if there is no controller
authorc vw <dl1ycf@darc.de>
Tue, 1 Jun 2021 14:37:00 +0000 (16:37 +0200)
committerc vw <dl1ycf@darc.de>
Tue, 1 Jun 2021 14:37:00 +0000 (16:37 +0200)
switch_menu.c

index 14f722e86be48aabecdd731e99dc9fd45c46f77d..19db8372c8fe07392398b547ff504d6e56c643b4 100644 (file)
@@ -135,6 +135,8 @@ void switch_menu(GtkWidget *parent) {
 
   switch(controller) {
     default:
+      break;
+    case CONTROLLER1:
       {
       GtkWidget *sw7_title=gtk_label_new("SW7: ");
       gtk_grid_attach(GTK_GRID(grid),sw7_title,col,row,1,1);