MEMS pressure sensor by STMicroelectronics. FIFO Hardware digital filter as default.
Dependents: WeatherSensor-Joe PAG-CourseWork-NicksEdits SOFT253_Assignment SOFT253_Assignment_V2 ... more
Fork of LPS25H by
Revision 1:54e65e221cae, committed 2017-03-29
- Comitter:
- martinsimpson
- Date:
- Wed Mar 29 10:25:38 2017 +0000
- Parent:
- 0:8fc511bd51af
- Commit message:
- Line 118 added 'f' single precision number to double
Changed in this revision
LPS25H.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 8fc511bd51af -r 54e65e221cae LPS25H.cpp --- a/LPS25H.cpp Sun Feb 22 00:59:52 2015 +0000 +++ b/LPS25H.cpp Wed Mar 29 10:25:38 2017 +0000 @@ -115,7 +115,7 @@ /////////////// Read data from sensor ///////////////////// float LPS25H::temperature() { - return (float)temp / 480 + 42.5; + return (float)temp / 480 + 42.5f; //added 'f' to stop warning regarding single precision implicit conversion to double MS 29/03/2017 } /////////////// ID ////////////////////////////////////////