Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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];
BME280 Combined humidity and pressure sensor