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:1c743b3c7098, committed 2016-03-18
- 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;
