--- a/thermferm/devices.c Sun Aug 10 20:01:17 2014 +0200 +++ b/thermferm/devices.c Sun Aug 10 21:22:17 2014 +0200 @@ -57,7 +57,7 @@ /* - * DHT11 sensor read. This should be used in a thread loop. + * DHT11 sensor read. */ void dht11Read(void) { int tries = 5; @@ -189,7 +189,6 @@ rc = 0; if ((device->type == DEVTYPE_RC433) && (device->gpiopin != -1) && (device->present == DEVPRESENT_YES)) { enableTransmit(device->gpiopin); -// usleep(10000); snprintf(buf, 39, "%s,%d", device->address, value ? 1:0); for (i = 0; i < strlen(buf); i++) if (buf[i] == '-') @@ -198,7 +197,6 @@ syslog(LOG_NOTICE, "RC433 command %s rc=%d", buf, rc); if (debug) fprintf(stdout, "RC433 command %s rc=%d\n", buf, rc); -// usleep(50000); disableTransmit(); device->value = value; device->timestamp = time(NULL); @@ -409,8 +407,6 @@ int temp, rc; syslog(LOG_NOTICE, "Thread my_devices_loop started"); - if (debug) - fprintf(stdout, "Thread my_devices_loop started\n"); /* * Loop forever until the external shutdown variable is set. @@ -507,9 +503,6 @@ } syslog(LOG_NOTICE, "Thread my_devices_loop stopped"); - if (debug) - fprintf(stdout, "Thread my_devices_loop stopped\n"); - return 0; }