Adapted library

Fork of DHT by Wim De Roeve

Files at this revision

API Documentation at this revision

Comitter:
nicolaselb
Date:
Fri Mar 18 13:12:32 2016 +0000
Parent:
0:9b5b3200688f
Commit message:
Ok

Changed in this revision

DHT.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 9b5b3200688f -r 1c743b3c7098 DHT.cpp
--- a/DHT.cpp	Mon Jul 09 19:47:43 2012 +0000
+++ b/DHT.cpp	Fri Mar 18 13:12:32 2016 +0000
@@ -158,10 +158,10 @@
             v = DHT_data[2] & 0x7F;
             v *= 256;
             v += DHT_data[3];
-            v /= 10;
+            //v /= 10;
             if (DHT_data[2] & 0x80)
                 v *= -1;
-            return float(v);
+            return float (v);
     }
     return 0;
 }
@@ -224,7 +224,7 @@
             v = DHT_data[0];
             v *= 256;
             v += DHT_data[1];
-            v /= 10;
+            //v /= 10;
             return float(v);
     }
     return 0;