]> git.earman.xyz Git - sensor-watch.git/commitdiff
Revert "ensure accelerometer test face always stays active" to remove to_always setting
authorjoeycastillo <joeycastillo@utexas.edu>
Sun, 29 Sep 2024 12:39:52 +0000 (08:39 -0400)
committerjoeycastillo <joeycastillo@utexas.edu>
Sun, 29 Sep 2024 12:39:52 +0000 (08:39 -0400)
This reverts commit c5400e437f919843e0235ed66f7840fd3ddf6ea0.

movement/watch_faces/demo/lis2dw_logging_face.c

index 8cd62d7dd6fc568b1c5b9c03255b12ce0dc26f80..4e87e2c3f0c66afc1d695f5ecb1abe5d43fb7f72 100644 (file)
@@ -128,13 +128,9 @@ void lis2dw_logging_face_setup(movement_settings_t *settings, uint8_t watch_face
     }
 }
 
-void lis2dw_logging_face_activate(movement_settings_t *settings, void *context) {
-    lis2dw_logger_state_t *logger_state = (lis2dw_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;
-
+void lis2dh_logging_face_activate(movement_settings_t *settings, void *context) {
+    (void) settings;
+    lis2dh_logger_state_t *logger_state = (lis2dh_logger_state_t *)context;
     logger_state->display_index = 0;
     logger_state->log_ticks = 0;
     watch_enable_digital_input(A4);