Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MPL3115A2 by
Diff: MPL3115A2.cpp
- Revision:
- 2:12223b4c88b1
- Parent:
- 1:6fdcf150410e
diff -r 6fdcf150410e -r 12223b4c88b1 MPL3115A2.cpp
--- 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 ;
