Thu, 25 Apr 2024 16:44:54 +0200
Version 0.9.19b1. Less noisy logging.
configure | file | annotate | diff | comparison | revisions | |
configure.ac | file | annotate | diff | comparison | revisions | |
thermferm/devices.c | file | annotate | diff | comparison | revisions | |
thermferm/one-wire.c | file | annotate | diff | comparison | revisions | |
thermferm/websocket.c | file | annotate | diff | comparison | revisions |
--- a/configure Thu Apr 25 15:10:37 2024 +0200 +++ b/configure Thu Apr 25 16:44:54 2024 +0200 @@ -2037,7 +2037,7 @@ PACKAGE="mbsePi-apps" -VERSION="0.9.19a6" +VERSION="0.9.19b1" COPYRIGHT="Copyright (C) 2014-2024 Michiel Broek, All Rights Reserved" CYEARS="2014-2024"
--- a/configure.ac Thu Apr 25 15:10:37 2024 +0200 +++ b/configure.ac Thu Apr 25 16:44:54 2024 +0200 @@ -8,7 +8,7 @@ dnl General settings dnl After changeing the version number, run autoconf! PACKAGE="mbsePi-apps" -VERSION="0.9.19a6" +VERSION="0.9.19b1" COPYRIGHT="Copyright (C) 2014-2024 Michiel Broek, All Rights Reserved" CYEARS="2014-2024" AC_SUBST(PACKAGE)
--- 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;
--- a/thermferm/one-wire.c Thu Apr 25 15:10:37 2024 +0200 +++ b/thermferm/one-wire.c Thu Apr 25 16:44:54 2024 +0200 @@ -88,7 +88,6 @@ payloadu = NULL; } payload = xstrcat(payload, (char *)"]}"); - syslog(LOG_NOTICE, "%s", payload); ws_broadcast(payload); free(payload); payload = NULL; @@ -398,7 +397,6 @@ devfile = xstrcat(devfile, cur_w1->address); devfile = xstrcat(devfile, (char *)"/temperature"); if ((fp = fopen(devfile, "r"))) { -// syslog(LOG_NOTICE, "One-wire device %s temperature is open, delay %d", cur_w1->address, conv_time); mDelay(conv_time); if ((fgets(buffer, 25, fp))) { sscanf(buffer, "%d", &value);
--- a/thermferm/websocket.c Thu Apr 25 15:10:37 2024 +0200 +++ b/thermferm/websocket.c Thu Apr 25 16:44:54 2024 +0200 @@ -413,7 +413,7 @@ else ringbuffer_head++; - syslog(LOG_NOTICE, "ws: broadcast buffer=%d len=%d", ringbuffer_head, len); +// syslog(LOG_NOTICE, "ws: broadcast buffer=%d len=%d", ringbuffer_head, len); lws_callback_on_writable_all_protocol(context, &protocols[0]); err = pthread_mutex_unlock(&ws_mutex);