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
Diff: LPS25H.cpp
- Revision:
- 1:54e65e221cae
- Parent:
- 0:8fc511bd51af
--- 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 ////////////////////////////////////////
