BME280 Combined humidity and pressure sensor library with I2C interface
Dependents: BME280_LCD IFTTT_BME280_demo TweetTest NetworkThermometer ... more
Revision 6:bce5ac62b015, committed 2020-11-07
- Comitter:
- MACRUM
- Date:
- Sat Nov 07 13:13:26 2020 +0000
- Parent:
- 5:c1f1647004c4
- Commit message:
- fix negative temperature bug
Changed in this revision
BME280.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/BME280.cpp Sat Mar 11 04:21:14 2017 +0000 +++ b/BME280.cpp Sat Nov 07 13:13:26 2020 +0000 @@ -117,7 +117,7 @@ float BME280::getTemperature() { - uint32_t temp_raw; + int32_t temp_raw; float tempf; char cmd[4];