--- a/thermferm/panel.c Wed Apr 03 19:33:38 2024 +0200 +++ b/thermferm/panel.c Fri Apr 05 16:19:39 2024 +0200 @@ -46,7 +46,6 @@ -extern int my_shutdown; extern int debug; extern int setupmenu; extern uint16_t keys; @@ -55,6 +54,7 @@ extern pthread_mutex_t mutexes[5]; int my_panel_state = 0; +int my_panel_shutdown = 0; int Key_Enter = FALSE; int Key_Enter_Long = FALSE; int Key_Up = FALSE; @@ -123,7 +123,7 @@ * Loop forever until the external shutdown variable is set. */ for (;;) { - if (my_shutdown) + if (my_panel_shutdown) break; #ifdef HAVE_WIRINGPI_H