799 #endif |
799 #endif |
800 } |
800 } |
801 if ((temp == 85000) || (temp < -125000)) { |
801 if ((temp == 85000) || (temp < -125000)) { |
802 syslog(LOG_NOTICE, "sensor %s value error '%d`", device->address, temp); |
802 syslog(LOG_NOTICE, "sensor %s value error '%d`", device->address, temp); |
803 } |
803 } |
804 if (temp & 0xf800) { |
|
805 syslog(LOG_NOTICE, "sensor %s sign bits error", device->address); |
|
806 } |
|
807 } else { |
804 } else { |
808 syslog(LOG_NOTICE, "sensor %s CRC error '%s`", device->address, line1); |
805 syslog(LOG_NOTICE, "sensor %s CRC error '%s`", device->address, line1); |
809 #ifdef HAVE_WIRINGPI_H |
806 #ifdef HAVE_WIRINGPI_H |
810 piLock(LOCK_DEVICES); |
807 piLock(LOCK_DEVICES); |
811 #endif |
808 #endif |