diff -r 99e3e6971f97 -r 01e3936f62d4 thermferm/one-wire.c --- a/thermferm/one-wire.c Sat May 04 13:49:36 2024 +0200 +++ b/thermferm/one-wire.c Sat May 04 15:18:02 2024 +0200 @@ -97,8 +97,10 @@ void *my_one_wire_loop(void *threadid) { + pid_t pid = gettid(); + my_one_wire_state = 1; - syslog(LOG_NOTICE, "Thread my_one_wire_loop started"); + syslog(LOG_NOTICE, "Thread my_one_wire_loop started, pid=%d", pid); /* * Run the state machine @@ -391,7 +393,8 @@ if (cur_w1->value != value) { cur_w1->timestamp = time(NULL); changed = true; - syslog(LOG_NOTICE, "One-wire device %s temperature read %d => %d", cur_w1->address, cur_w1->value, value); + if (debug) + syslog(LOG_NOTICE, "One-wire device %s temperature read %d => %d", cur_w1->address, cur_w1->value, value); } cur_w1->value = value; /* devices.c will pick this up */ } else {