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 4:1ee1770de41a, committed 2017-06-06
- Comitter:
- charlie316
- Date:
- Tue Jun 06 18:12:20 2017 +0000
- Parent:
- 3:6937e130feca
- Commit message:
- Changes swap "DHT 11" and "DHT 22" in DHT.cpp
Changed in this revision
| DHT.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6937e130feca -r 1ee1770de41a DHT.cpp
--- a/DHT.cpp Sat May 28 11:11:34 2016 +0000
+++ b/DHT.cpp Tue Jun 06 18:12:20 2017 +0000
@@ -138,10 +138,10 @@
int v;
switch (_DHTtype) {
- case DHT11:
+ case DHT22: // Before was DHT 11 Chaitanya
v = DHT_data[2];
return float(v);
- case DHT22:
+ case DHT11: // Before was DHT 22 Chaitanya
v = DHT_data[2] & 0x7F;
v *= 256;
v += DHT_data[3];
