In float DHT::CalcTemperature() method switch cases has been interchanged
Fork of DHT by
Diff: DHT.cpp
- Revision:
- 1:699568fad2b3
- Parent:
- 0:9b5b3200688f
--- 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];