Temp and Humidity sensor device driver. had to fork under a new name, don't know why yet.
Dependents: Wio-example-SORACOM-Harvest
Revision 9:64164cbcbab8, committed 2020-05-08
- Comitter:
- lamell
- Date:
- Fri May 08 11:40:25 2020 -0400
- Parent:
- 8:4a66ebac2a2c
- Commit message:
- Really nothing was modified.
Changed in this revision
DHT.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 4a66ebac2a2c -r 64164cbcbab8 DHT.cpp --- a/DHT.cpp Wed Jan 29 08:32:03 2020 -0400 +++ b/DHT.cpp Fri May 08 11:40:25 2020 -0400 @@ -153,8 +153,9 @@ _lastReadTime = currentTime; _lastTemperature=CalcTemperature(); _lastHumidity=CalcHumidity(); - //err = ERROR_CHECKSUM; - return (DHT_data[4]-(DHT_data[0] + DHT_data[1] + DHT_data[2] + DHT_data[3])); + err = ERROR_CHECKSUM; + return err; + //return (DHT_data[4]-(DHT_data[0] + DHT_data[1] + DHT_data[2] + DHT_data[3])); } else { wait_us(200000); goto retry_point;