I use DHT library. I exchange type of temperature and humid value from an integer to float.
Fork of DHT by
Revision 5:b2a9b214a03f, committed 2018-01-02
- Comitter:
- fbdp1202
- Date:
- Tue Jan 02 07:53:39 2018 +0000
- Parent:
- 4:1e78a462b211
- Commit message:
- DHT22_data_using_command
Changed in this revision
DHT.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 1e78a462b211 -r b2a9b214a03f DHT.cpp --- a/DHT.cpp Thu Jul 20 09:04:07 2017 +0000 +++ b/DHT.cpp Tue Jan 02 07:53:39 2018 +0000 @@ -136,7 +136,7 @@ float DHT::CalcTemperature() { - int v; + float v; switch (_DHTtype) { case DHT11: @@ -208,7 +208,7 @@ float DHT::CalcHumidity() { - int v; + float v; switch (_DHTtype) { case DHT11: