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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/motion_sense.h b/include/motion_sense.h
index f46935ca73..e19107e290 100644
--- a/include/motion_sense.h
+++ b/include/motion_sense.h
@@ -186,6 +186,9 @@ struct motion_sensor_t {
*/
int default_range;
+ /* Range currently used by the sensor. */
+ int current_range;
+
/*
* There are 4 configuration parameters to deal with different
* configuration
@@ -282,7 +285,7 @@ extern unsigned int motion_min_interval;
*
* @param sensor sensor which was just initialized
*/
-int sensor_init_done(const struct motion_sensor_t *sensor);
+int sensor_init_done(struct motion_sensor_t *sensor);
/**
* Board specific function that is called when a double_tap event is detected.