mbed MPL115A1 (Barometric Pressure Sensor) Library
Dependents: MPL115A1_HelloWorld
Diff: MPL115A1.cpp
- Revision:
- 1:b2adf1b62898
- Parent:
- 0:f8ee2a5e377a
--- a/MPL115A1.cpp Tue Apr 17 07:44:48 2012 +0000 +++ b/MPL115A1.cpp Tue Apr 17 15:35:24 2012 +0000 @@ -217,5 +217,5 @@ // Tadc is 472 counts at 25degC, -5.35 counts/degC // return ((float)uiTadc - 472.0)/(-5.35) + 25 - return (605.75-uiTadc)/5.35; + return (605.75-uiTadc)*0.186916; } \ No newline at end of file