diff options
Diffstat (limited to 'movement')
-rw-r--r-- | movement/watch_faces/demos/lis2dh_logging_face.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/movement/watch_faces/demos/lis2dh_logging_face.c b/movement/watch_faces/demos/lis2dh_logging_face.c index 12387a0b..af82a004 100644 --- a/movement/watch_faces/demos/lis2dh_logging_face.c +++ b/movement/watch_faces/demos/lis2dh_logging_face.c @@ -106,8 +106,12 @@ void lis2dh_logging_face_setup(movement_settings_t *settings, void ** context_pt } void lis2dh_logging_face_activate(movement_settings_t *settings, void *context) { - (void) settings; lis2dh_logger_state_t *logger_state = (lis2dh_logger_state_t *)context; + // force two settings: never enter low energy mode, and always snap back to screen 0. + // this assumes the accelerometer face is first in the watch_faces list. + settings->bit.le_interval = 0; + settings->bit.to_always = true; + logger_state->display_index = 0; logger_state->log_ticks = 0; watch_enable_digital_input(A1); |