Toyomasa Watarai / MPL3115A2

Files at this revision

API Documentation at this revision

Comitter:
MACRUM
Date:
Sun Nov 10 03:38:04 2019 +0000
Parent:
11:85da7a1b7954
Commit message:
Fix API version issue

Changed in this revision

MPL3115A2.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/MPL3115A2.cpp	Sun Nov 10 01:46:07 2019 +0000
+++ b/MPL3115A2.cpp	Sun Nov 10 03:38:04 2019 +0000
@@ -1,5 +1,9 @@
 #include "MPL3115A2.h"
 
+#if MBED_MINOR_VERSION < 14
+#define thread_sleep_for(X) wait_ms(X)
+#endif
+
 #define REG_WHO_AM_I        0x0C        // return 0xC4 by default
 #define REG_STATUS          0x00
 #define REG_CTRL_REG_1      0x26