Debug CRC error messages

Tue, 25 Jul 2017 17:39:42 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Tue, 25 Jul 2017 17:39:42 +0200
changeset 527
afd13a58c8c8
parent 526
2f75f94d471b
child 528
908ef02d5d22

Debug CRC error messages

thermferm/devices.c file | annotate | diff | comparison | revisions
--- a/thermferm/devices.c	Tue Jul 25 13:16:49 2017 +0200
+++ b/thermferm/devices.c	Tue Jul 25 17:39:42 2017 +0200
@@ -776,7 +776,7 @@
 				    piUnlock(LOCK_DEVICES);
 #endif
 				} else {
-				    syslog(LOG_NOTICE, "sensor %s CRC error", device->address);
+				    syslog(LOG_NOTICE, "sensor %s CRC error '%s`", device->address, line);
 #ifdef HAVE_WIRINGPI_H
 				    piLock(LOCK_DEVICES);                
 #endif

mercurial