diff -r f16def8472ba -r e97829d0f8f9 thermferm/thermferm.c --- a/thermferm/thermferm.c Thu Jul 31 23:39:11 2014 +0200 +++ b/thermferm/thermferm.c Thu Jul 31 23:57:04 2014 +0200 @@ -23,7 +23,6 @@ #include "lock.h" #include "logger.h" #include "rdconfig.h" -#include "sensors.h" #include "devices.h" #include "server.h" #include "thermferm.h" @@ -231,7 +230,6 @@ { char buf[1024], *filename, target[40], heater[40], cooler[40], fan[40], door[40]; time_t now, last = (time_t)0; - w1_therm *tmp1; units_list *unit; int rc, run = 1, seconds = 0; #ifdef HAVE_WIRINGPI_H @@ -269,20 +267,6 @@ } #ifdef HAVE_WIRINGPI_H - rc = piThreadCreate(my_sensors_loop); -#else - rc = pthread_create(&threads[t], NULL, my_sensors_loop, (void *)t ); -#endif - if (rc) { - fprintf(stderr, "my_sensors_loop thread didn't start rc=%d\n", rc); - syslog(LOG_NOTICE, "my_sensors_loop thread didn't start rc=%d", rc); -#ifndef HAVE_WIRINGPI_H - } else { - t++; -#endif - } - -#ifdef HAVE_WIRINGPI_H rc = piThreadCreate(my_server_loop); #else rc = pthread_create(&threads[t], NULL, my_server_loop, (void *)t ); @@ -322,18 +306,9 @@ } do { - lcdupdate = FALSE; - if (my_shutdown) run = 0; - for (tmp1 = Config.w1therms; tmp1; tmp1 = tmp1->next) { - if (tmp1->update) { - tmp1->update = FALSE; - lcdupdate = TRUE; - } - } - /* * Timed schedulers */