123

Dependents:   BLE_iot

Fork of DHT by Wim De Roeve

Files at this revision

API Documentation at this revision

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
diff -r 9b5b3200688f -r faec6830c633 DHT.cpp
--- 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;