Skip to content

Commit

Permalink
fix #6 T-GO signal (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobTillaart authored Feb 16, 2021
1 parent b2164c3 commit bc276db
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions dht.cpp
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions dht.h
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "git",
"url": "https://github.com/RobTillaart/DHTlib.git"
},
"version":"0.1.32",
"version":"0.1.33",
"frameworks": "arduino",
"platforms": "*"
}
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=DHTlib
version=0.1.32
version=0.1.33
author=Rob Tillaart <[email protected]>
maintainer=Rob Tillaart <[email protected]>
sentence=AVR Optimized Library for DHT Temperature & Humidity Sensor on AVR only.
Expand Down

0 comments on commit bc276db

Please sign in to comment.