summaryrefslogtreecommitdiff
path: root/include/motion_sense.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/motion_sense.h')
-rw-r--r--include/motion_sense.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/motion_sense.h b/include/motion_sense.h
index 0e6f7aa342..65512c733b 100644
--- a/include/motion_sense.h
+++ b/include/motion_sense.h
@@ -70,7 +70,7 @@ enum sensor_config {
1 << (TASK_EVENT_MOTION_FIRST_SW_EVENT + (_activity_id))))
-#define ROUND_UP_FLAG (1 << 31)
+#define ROUND_UP_FLAG BIT(31)
#define BASE_ODR(_odr) ((_odr) & ~ROUND_UP_FLAG)
#define BASE_RANGE(_range) ((_range) & ~ROUND_UP_FLAG)