BME280 Combined humidity and pressure sensor library with I2C interface

Dependents:   BME280_LCD IFTTT_BME280_demo TweetTest NetworkThermometer ... more

Files at this revision

API Documentation at this revision

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