summaryrefslogtreecommitdiff
path: root/driver/mag_bmm150.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/mag_bmm150.c')
-rw-r--r--driver/mag_bmm150.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver/mag_bmm150.c b/driver/mag_bmm150.c
index 772b147d70..4bc0d7a8e7 100644
--- a/driver/mag_bmm150.c
+++ b/driver/mag_bmm150.c
@@ -82,6 +82,7 @@ int bmm150_init(const struct motion_sensor_t *s)
/* Set the compass from Suspend to Sleep */
ret = raw_mag_write8(s->addr, BMM150_PWR_CTRL, BMM150_PWR_ON);
+ msleep(4);
/* Now we can read the device id */
ret = raw_mag_read8(s->addr, BMM150_CHIP_ID, &val);
if (ret)