From c9d26d5932a400af5954aa143ee8a02306e73d02 Mon Sep 17 00:00:00 2001 From: c vw Date: Tue, 1 Jun 2021 16:37:00 +0200 Subject: [PATCH] Make this "safe" if there is no controller --- switch_menu.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.45.2