diff --git a/dht.cpp b/dht.cpp index 11b00be..4f39f9f 100644 --- a/dht.cpp +++ b/dht.cpp @@ -1,12 +1,13 @@ // // FILE: dht.cpp // AUTHOR: Rob Tillaart -// VERSION: 0.1.32 +// VERSION: 0.1.33 // PURPOSE: DHT Temperature & Humidity Sensor library for Arduino, AVR optimized // URL: https://github.com/RobTillaart/DHTlib // http://arduino.cc/playground/Main/DHTLib // // HISTORY: +// 0.1.33 2021-02-16 fix #6 T-GO signal in handshake. (needed for long wires) // 0.1.32 2021-02-01 fix negative temperature DHT22 again (code from DHTNew) // 0.1.31 2020-12-15 fix negative temperature DHT22 (code from DHTNew) // 0.1.30 2020-06-30 own repo; @@ -182,7 +183,7 @@ int8_t dht::_readSensor(uint8_t pin, uint8_t wakeupDelay, uint8_t leadingZeroBit digitalWrite(pin, LOW); // T-be if (wakeupDelay > 8) delay(wakeupDelay); else delayMicroseconds(wakeupDelay * 1000UL); - // digitalWrite(pin, HIGH); // T-go + digitalWrite(pin, HIGH); // T-go pinMode(pin, INPUT); uint16_t loopCount = DHTLIB_TIMEOUT * 2; // 200uSec max diff --git a/dht.h b/dht.h index fd4014d..0f18253 100644 --- a/dht.h +++ b/dht.h @@ -1,7 +1,7 @@ // // FILE: dht.h // AUTHOR: Rob Tillaart -// VERSION: 0.1.32 +// VERSION: 0.1.33 // PURPOSE: DHT Temperature & Humidity Sensor library for Arduino. AVR optimized // URL: https://github.com/RobTillaart/DHTlib // http://arduino.cc/playground/Main/DHTLib @@ -21,7 +21,7 @@ #endif -#define DHT_LIB_VERSION (F("0.1.32")) +#define DHT_LIB_VERSION (F("0.1.33")) #define DHTLIB_OK 0 #define DHTLIB_ERROR_CHECKSUM -1 diff --git a/library.json b/library.json index 0b13224..a879978 100644 --- a/library.json +++ b/library.json @@ -15,7 +15,7 @@ "type": "git", "url": "https://github.com/RobTillaart/DHTlib.git" }, - "version":"0.1.32", + "version":"0.1.33", "frameworks": "arduino", "platforms": "*" } diff --git a/library.properties b/library.properties index 36ad52e..8992395 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=DHTlib -version=0.1.32 +version=0.1.33 author=Rob Tillaart maintainer=Rob Tillaart sentence=AVR Optimized Library for DHT Temperature & Humidity Sensor on AVR only.