thermferm/devices.c

changeset 268
dda91dfa4aa8
parent 262
d0014ccec615
child 323
608592f74b10
--- a/thermferm/devices.c	Mon Aug 25 21:33:57 2014 +0200
+++ b/thermferm/devices.c	Tue Aug 26 13:50:35 2014 +0200
@@ -124,9 +124,9 @@
 	 */
 	if ((counter == 255) && (j == 0)) {
 	    if (dht11_temperature != -1) {
-		syslog(LOG_WARNING, "dht11 sensor disappeared");
+		syslog(LOG_NOTICE, "dht11 sensor disappeared");
 	    } else {
-		syslog(LOG_WARNING, "dht11 sensor not present");
+		syslog(LOG_NOTICE, "dht11 sensor not present");
 	    }
 	    dht11_temperature = -1;
 	    dht11_humidity = -1;
@@ -153,7 +153,7 @@
 	} else {
 		tries--;
 		if (tries == 0)
-		    syslog(LOG_WARNING, "dht11 data checksum was wrong 5 times");
+		    syslog(LOG_NOTICE, "dht11 data checksum was wrong 5 times");
 		usleep(100000);
 	}
     }
@@ -513,7 +513,7 @@
 			    addr = xstrcat(addr, (char *)"/w1_slave");
 			    if ((fp = fopen(addr, "r"))) {
 				if (device->present != DEVPRESENT_YES) {
-				     syslog(LOG_WARNING, "sensor %s is back", device->address);
+				     syslog(LOG_NOTICE, "sensor %s is back", device->address);
 #ifdef HAVE_WIRINGPI_H
 				     piLock(LOCK_DEVICES);
 #endif
@@ -547,7 +547,7 @@
 				    piUnlock(LOCK_DEVICES);
 #endif
 				} else {
-				    syslog(LOG_WARNING, "sensor %s CRC error", device->address);
+				    syslog(LOG_NOTICE, "sensor %s CRC error", device->address);
 #ifdef HAVE_WIRINGPI_H
 				    piLock(LOCK_DEVICES);                
 #endif
@@ -559,7 +559,7 @@
 				fclose(fp);
 			    } else {
 				if (device->present != DEVPRESENT_NO) {
-				    syslog(LOG_WARNING, "sensor %s is missing", device->address);
+				    syslog(LOG_NOTICE, "sensor %s is missing", device->address);
 #ifdef HAVE_WIRINGPI_H
 				    piLock(LOCK_DEVICES);                
 #endif

mercurial