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.
Revision 5:492df2322044, committed 2018-02-05
- Comitter:
- mcm
- Date:
- Mon Feb 05 12:55:05 2018 +0000
- Parent:
- 4:57ca557b109d
- Commit message:
- All temperature functions were fixed, now it works as expected.
Changed in this revision
SI7006.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 57ca557b109d -r 492df2322044 SI7006.cpp --- a/SI7006.cpp Mon Feb 05 12:26:45 2018 +0000 +++ b/SI7006.cpp Mon Feb 05 12:55:05 2018 +0000 @@ -375,7 +375,7 @@ if ( ( cmd[1] & 0x02 ) == 0x00 ) { // Parse the data myTemperature->Temperature = ( ( cmd[0] << 8 ) | cmd[1] ); - myTemperature->Temperature *= 172.72; + myTemperature->Temperature *= 175.72; myTemperature->Temperature /= 65536.0; myTemperature->Temperature -= 46.85; } else