V1
Fork of DHT by
Revision 4:171c12efa794, committed 2017-07-06
- Comitter:
- agaikwad
- Date:
- Thu Jul 06 18:49:18 2017 +0000
- Parent:
- 2:df22ddf10d75
- Commit message:
- V1
Changed in this revision
DHT.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r df22ddf10d75 -r 171c12efa794 DHT.cpp --- a/DHT.cpp Fri Aug 15 20:55:43 2014 +0000 +++ b/DHT.cpp Thu Jul 06 18:49:18 2017 +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];