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.
Fork of MPL3115A2 by
Revision 4:99c7b631977d, committed 2017-05-11
- Comitter:
- igauli20
- Date:
- Thu May 11 16:25:01 2017 +0000
- Parent:
- 3:7c7c1ea6fc33
- Commit message:
- Variation of Cosmic Radiation with Shielding Material.
Changed in this revision
Temperature.cpp | Show annotated file Show diff for this revision Revisions of this file |
Temperature.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 7c7c1ea6fc33 -r 99c7b631977d Temperature.cpp --- a/Temperature.cpp Wed Apr 02 12:59:44 2014 +0000 +++ b/Temperature.cpp Thu May 11 16:25:01 2017 +0000 @@ -39,7 +39,7 @@ setTemperature(compressed[0], compressed[1]); } -void Temperature::setTemperature(const char msb, const char lsb) +void Temperature::setTemperature(const signed char msb, const signed char lsb) { float templsb = (lsb>>4) / 16.0; //temp, fraction of a degree _temperature = (float)(msb + templsb);
diff -r 7c7c1ea6fc33 -r 99c7b631977d Temperature.h --- a/Temperature.h Wed Apr 02 12:59:44 2014 +0000 +++ b/Temperature.h Thu May 11 16:25:01 2017 +0000 @@ -41,7 +41,7 @@ //! Call to decompress the sensor data after an I2C read. void setTemperature(); void setTemperature(const char* compressed); - void setTemperature(const char msb, const char lsb); + void setTemperature(const signed char msb, const signed char lsb); void setTemperature(float a, unitsType units = FAHRENHEIT); //! Returns the temperature as a string in the units specified, defaulting to FAHRENHEIT if none specified.