MPL3115A2_for_weather_shield

Dependents:   SPARKFUN_WEATHER_SHIELD

Fork of MPL3115A2 by Michael Lange

Revision:
4:9ba8fde79093
Parent:
0:beb43bc3d6d4
--- a/MPL3115A2.cpp	Wed Apr 02 12:59:44 2014 +0000
+++ b/MPL3115A2.cpp	Thu Oct 20 16:47:25 2016 +0000
@@ -7,14 +7,12 @@
 {
 }
 
-// By default I set the sensor to altimeter mode. I inserted a 1ms pause 
-// between each call to allow logic capture if needed. This give a small
-// gap between captures on the bus to make working with the data easier.
+//Barometer mode default
 void MPL3115A2::init()
 {
     setModeStandby();
     wait_ms(1);
-    setModeAltimeter();
+    setModeBarometer();
     wait_ms(1);
     setOversampleRate(7);
     wait_ms(1);