Updated version
Fork of DHT by
Revision 4:ad3ac9fb885d, committed 2018-04-17
- Comitter:
- agaikwad
- Date:
- Tue Apr 17 21:27:57 2018 +0000
- Parent:
- 2:df22ddf10d75
- Commit message:
- Remote I?O Sensor Bus with AT&T Flow and M2X cloud
Changed in this revision
DHT.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r df22ddf10d75 -r ad3ac9fb885d DHT.cpp --- a/DHT.cpp Fri Aug 15 20:55:43 2014 +0000 +++ b/DHT.cpp Tue Apr 17 21:27:57 2018 +0000 @@ -139,10 +139,10 @@ int v; switch (_DHTtype) { - case DHT11: + case DHT22: v = DHT_data[2]; return float(v); - case DHT22: + case DHT11: v = DHT_data[2] & 0x7F; v *= 256; v += DHT_data[3]; @@ -211,10 +211,10 @@ int v; switch (_DHTtype) { - case DHT11: + case DHT22: v = DHT_data[0]; return float(v); - case DHT22: + case DHT11: v = DHT_data[0]; v *= 256; v += DHT_data[1];