--- a/thermferm/devices.c Sat Mar 23 12:18:14 2024 +0100 +++ b/thermferm/devices.c Sat Mar 23 16:01:24 2024 +0100 @@ -27,6 +27,8 @@ #include "xutil.h" +int my_devices_state = 0; + extern sys_config Config; extern int my_shutdown; extern pthread_mutex_t mutexes[5]; @@ -730,6 +732,7 @@ time_t now; #endif + my_devices_state = 1; syslog(LOG_NOTICE, "Thread my_devices_loop started"); #ifdef HAVE_WIRINGPI_H @@ -995,6 +998,7 @@ } syslog(LOG_NOTICE, "Thread my_devices_loop stopped"); + my_devices_state = 0; return 0; }