In float DHT::CalcTemperature() method switch cases has been interchanged
Fork of DHT by
Revision 1:699568fad2b3, committed 2016-05-06
- Comitter:
- pakrishn
- Date:
- Fri May 06 13:45:24 2016 +0000
- Parent:
- 0:9b5b3200688f
- Commit message:
- In float DHT::CalcTemperature() method switch cases has to be interchanged
Changed in this revision
DHT.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/DHT.cpp Mon Jul 09 19:47:43 2012 +0000 +++ b/DHT.cpp Fri May 06 13:45:24 2016 +0000 @@ -151,10 +151,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];