diff options
Diffstat (limited to 'include/motion_sense.h')
-rw-r--r-- | include/motion_sense.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/motion_sense.h b/include/motion_sense.h index 553cf0ca7e..478468022e 100644 --- a/include/motion_sense.h +++ b/include/motion_sense.h @@ -157,7 +157,11 @@ struct motion_sensor_t { /* Defined at board level. */ extern struct motion_sensor_t motion_sensors[]; +#ifdef CONFIG_DYNAMIC_MOTION_SENSOR_COUNT +extern unsigned motion_sensor_count; +#else extern const unsigned motion_sensor_count; +#endif #if (!defined HAS_TASK_ALS) && (defined CONFIG_ALS) /* Needed if reading ALS via LPC is needed */ extern const struct motion_sensor_t *motion_als_sensors[]; |