Fixed issues with DHT version

Dependents:   SmartPipe_Probe_TX FDRM-K64_GPIO_K64f

Fork of DHT by Wim De Roeve

Files at this revision

API Documentation at this revision

Comitter:
haircules
Date:
Thu Mar 30 20:29:01 2017 +0000
Parent:
0:9b5b3200688f
Commit message:
Made changes to DHT11/DHT22 code

Changed in this revision

DHT.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 9b5b3200688f -r 9fe234fec939 DHT.cpp
--- a/DHT.cpp	Mon Jul 09 19:47:43 2012 +0000
+++ b/DHT.cpp	Thu Mar 30 20:29:01 2017 +0000
@@ -159,6 +159,7 @@
             v *= 256;
             v += DHT_data[3];
             v /= 10;
+            
             if (DHT_data[2] & 0x80)
                 v *= -1;
             return float(v);