ensure accelerometer test face always stays active
This commit is contained in:
parent
eb66b67e8e
commit
c5400e437f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user