In float DHT::CalcTemperature() method switch cases has been interchanged

Dependents:   esp8266_http_POST

Fork of DHT by Wim De Roeve

Files at this revision

API Documentation at this revision

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];