123
Fork of DHT by
Revision 1:faec6830c633, committed 2018-01-29
- Comitter:
- orhanhenrik
- Date:
- Mon Jan 29 10:58:07 2018 +0000
- Parent:
- 0:9b5b3200688f
- Commit message:
- lulz
Changed in this revision
DHT.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/DHT.cpp Mon Jul 09 19:47:43 2012 +0000 +++ b/DHT.cpp Mon Jan 29 10:58:07 2018 +0000 @@ -133,15 +133,14 @@ } DHT_data[i]=b; } - - if (DHT_data[4] == ((DHT_data[0] + DHT_data[1] + DHT_data[2] + DHT_data[3]) & 0xFF)) { + //if (DHT_data[4] == ((DHT_data[0] + DHT_data[1] + DHT_data[2] + DHT_data[3]) & 0xFF)) { _lastReadTime = currentTime; _lastTemperature=CalcTemperature(); _lastHumidity=CalcHumidity(); - } else { - err = ERROR_CHECKSUM; - } + //} else { + // err = ERROR_CHECKSUM; + //} return err;