Increased time before reading temperature.

4LD modifications.
This commit is contained in:
Blaz Kristan
2021-12-19 21:14:54 +01:00
parent 6463fbee32
commit c3df9e6270
3 changed files with 191 additions and 197 deletions

View File

@@ -60,7 +60,7 @@ class UsermodTemperature : public Usermod {
if (oneWire->reset()) { // if reset() fails there are no OneWire devices
oneWire->skip(); // skip ROM
oneWire->write(0xBE); // read (temperature) from EEPROM
delayMicroseconds(150);
delayMicroseconds(250);
oneWire->read_bytes(data, 9); // first 2 bytes contain temperature
#ifdef WLED_DEBUG
if (OneWire::crc8(data,8) != data[8]) {