From: c vw Date: Tue, 1 Jun 2021 14:37:00 +0000 (+0200) Subject: Make this "safe" if there is no controller X-Git-Url: https://git.rkrishnan.org/listings/vdrive/index.php?a=commitdiff_plain;h=c9d26d5932a400af5954aa143ee8a02306e73d02;p=pihpsdr.git Make this "safe" if there is no controller --- diff --git a/switch_menu.c b/switch_menu.c index 14f722e..19db837 100644 --- a/switch_menu.c +++ b/switch_menu.c @@ -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);