lab 7

Fork of MPL3115A2 by MSS

Revision:
2:12223b4c88b1
Parent:
1:6fdcf150410e
--- a/MPL3115A2.cpp	Thu May 18 06:30:44 2017 +0000
+++ b/MPL3115A2.cpp	Wed Aug 23 12:37:18 2017 +0000
@@ -132,6 +132,8 @@
     standby() ;
     modeBar() ;
     sample_time = getSampleTime() ;
+    activate() ;
+    oneShot() ;
     wait_ms(sample_time) ;
     readRegs(MPL_OUT_P_MSB, tmp, 3) ;
     data = ((tmp[0]<<16)|(tmp[1]<<8)|(tmp[2])) >> 6  ;