thermferm/devices.c

changeset 527
afd13a58c8c8
parent 506
cdcd07bbee30
child 528
908ef02d5d22
equal deleted inserted replaced
526:2f75f94d471b 527:afd13a58c8c8
774 } 774 }
775 #ifdef HAVE_WIRINGPI_H 775 #ifdef HAVE_WIRINGPI_H
776 piUnlock(LOCK_DEVICES); 776 piUnlock(LOCK_DEVICES);
777 #endif 777 #endif
778 } else { 778 } else {
779 syslog(LOG_NOTICE, "sensor %s CRC error", device->address); 779 syslog(LOG_NOTICE, "sensor %s CRC error '%s`", device->address, line);
780 #ifdef HAVE_WIRINGPI_H 780 #ifdef HAVE_WIRINGPI_H
781 piLock(LOCK_DEVICES); 781 piLock(LOCK_DEVICES);
782 #endif 782 #endif
783 device->present = DEVPRESENT_ERROR; 783 device->present = DEVPRESENT_ERROR;
784 #ifdef HAVE_WIRINGPI_H 784 #ifdef HAVE_WIRINGPI_H

mercurial