Stop logging ghost one-wire devices.

Thu, 11 Apr 2024 11:19:04 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 11 Apr 2024 11:19:04 +0200
changeset 670
6c62e99ade00
parent 669
daa22055cd3d
child 671
b2e2cbb13cb3

Stop logging ghost one-wire devices.

thermferm/one-wire.c file | annotate | diff | comparison | revisions
--- a/thermferm/one-wire.c	Mon Apr 08 13:16:42 2024 +0200
+++ b/thermferm/one-wire.c	Thu Apr 11 11:19:04 2024 +0200
@@ -159,7 +159,7 @@
 		}
 		pthread_mutex_unlock(&mutexes[LOCK_ONE_WIRE]);
 	    }
-	} else {
+	} else if (strcmp(w1type, (char *)"00")) {
 	    syslog(LOG_NOTICE, "One-wire device %d %s unknown", strlen(buffer), buffer);
 	}
     }

mercurial