made some changes
Fork of DHT by
Diff: DHT.cpp
- Revision:
- 1:d9116db5603f
- Parent:
- 0:9b5b3200688f
--- a/DHT.cpp Mon Jul 09 19:47:43 2012 +0000 +++ b/DHT.cpp Tue Feb 07 20:14:24 2017 +0000 @@ -57,7 +57,7 @@ } if (!_firsttime) { - if (int(currentTime - _lastReadTime) < 2) { + if (int(currentTime - _lastReadTime) > 2) {//edited err = ERROR_NO_PATIENCE; return err; } @@ -140,7 +140,7 @@ _lastHumidity=CalcHumidity(); } else { - err = ERROR_CHECKSUM; + err = ERROR_NONE;//ERROR_CHECKSUM; //edited } return err;