Temp and Humidity sensor device driver.

Fork of DHT by Components

Files at this revision

API Documentation at this revision

Comitter:
DBK
Date:
Fri Jun 01 23:32:31 2018 +0000
Parent:
3:6937e130feca
Commit message:
Using proper floats to take advantage of DHT22 precision

Changed in this revision

DHT.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/DHT.cpp	Sat May 28 11:11:34 2016 +0000
+++ b/DHT.cpp	Fri Jun 01 23:32:31 2018 +0000
@@ -135,7 +135,7 @@
 
 float DHT::CalcTemperature()
 {
-    int v;
+    float v;
 
     switch (_DHTtype) {
         case DHT11:
@@ -207,7 +207,7 @@
 
 float DHT::CalcHumidity()
 {
-    int v;
+    float v;
 
     switch (_DHTtype) {
         case DHT11: