summaryrefslogtreecommitdiff
path: root/driver/mag_bmm150.h
diff options
context:
space:
mode:
Diffstat (limited to 'driver/mag_bmm150.h')
-rw-r--r--driver/mag_bmm150.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/mag_bmm150.h b/driver/mag_bmm150.h
index c15cbc065b..94777e1b61 100644
--- a/driver/mag_bmm150.h
+++ b/driver/mag_bmm150.h
@@ -23,8 +23,8 @@
#define BMM150_INT_STATUS 0x4a
#define BMM150_PWR_CTRL 0x4b
-#define BMM150_SRST ((1 << 7) | (1 << 1))
-#define BMM150_PWR_ON (1 << 0)
+#define BMM150_SRST (BIT(7) | BIT(1))
+#define BMM150_PWR_ON BIT(0)
#define BMM150_OP_CTRL 0x4c
#define BMM150_OP_MODE_OFFSET 1