--- a/coolers/coolers.c Mon May 05 23:33:31 2014 +0200 +++ b/coolers/coolers.c Tue May 06 13:24:25 2014 +0200 @@ -202,14 +202,21 @@ { char buf[1024]; w1_therm *tmp1, *old1; - int run = 0; + int rc, run = 0; my_mosquitto_init(); + rc = piThreadCreate (my_sensors_loop); + if (rc) { + fprintf(stderr, "my_sensors_loop thread didn't start\n"); + } else { + if (debug) + fprintf(stdout, "Thread my_sensors_loop started\n"); + } + do { lcdupdate = FALSE; - my_sensors_loop(); run = my_mosquitto_loop(); if (run && lcdupdate) {