thermferm/devices.c

changeset 711
844588d0df65
parent 693
3518c07737d8
child 713
ea24b4ce02b1
--- a/thermferm/devices.c	Thu Apr 25 15:10:37 2024 +0200
+++ b/thermferm/devices.c	Thu Apr 25 16:44:54 2024 +0200
@@ -301,9 +301,10 @@
 #endif
 		if ((device->type == DEVTYPE_W1) && (device->direction == DEVDIR_OUT_BIN) && (device->present == DEVPRESENT_YES)) {
 		    if (strncmp(device->address, (char *)"3a", 2) == 0) {
-		    	syslog(LOG_NOTICE, "DS2413 PIO%c value=%d (%s)", (device->subdevice == 0) ? 'A' : 'B', (value == 0) ? 0 : 1, device->comment);
+//		    	syslog(LOG_NOTICE, "DS2413 PIO%c value=%d (%s)", (device->subdevice == 0) ? 'A' : 'B', (value == 0) ? 0 : 1, device->comment);
 //			pthread_mutex_lock(&mutexes[LOCK_DEVICES]);
 			if (device->value != (value == 0) ? 0 : 1) {
+			    syslog(LOG_NOTICE, "DS2413 PIO%c value=%d (%s)", (device->subdevice == 0) ? 'A' : 'B', (value == 0) ? 0 : 1, device->comment);
 			    device->value = (value == 0) ? 0 : 1;
 			    device->timestamp = time(NULL);
 			    devices_ws();
@@ -439,7 +440,6 @@
 	payloadu = NULL;
     }
     payload = xstrcat(payload, (char *)"]}");
-    syslog(LOG_NOTICE, "%s", payload);
     ws_broadcast(payload);
     free(payload);
     payload = NULL;

mercurial