Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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;
