|
|
@ -133,15 +133,6 @@ class DallasSensor : public BaseSensor { |
|
|
|
data[i] = _wire->read(); |
|
|
|
} |
|
|
|
|
|
|
|
#if false |
|
|
|
Serial.printf("[DS18B20] Data = "); |
|
|
|
for (unsigned char i = 0; i < DS_DATA_SIZE; i++) { |
|
|
|
Serial.printf("%02X ", data[i]); |
|
|
|
} |
|
|
|
Serial.printf(" CRC = %02X\n", OneWire::crc8(data, DS_DATA_SIZE-1)); |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
if (_wire->reset() != 1) { |
|
|
|
// Force a CRC check error |
|
|
|
_devices[index].data[0] = _devices[index].data[0] + 1; |
|
|
|