power down accelerometer unless a watch face requests it

This commit is contained in:
Joey Castillo
2025-05-26 10:51:11 -04:00
parent 6ac2c13098
commit 69b8048790
5 changed files with 48 additions and 4 deletions
@@ -73,6 +73,8 @@ void activity_logging_face_setup(uint8_t watch_face_index, void ** context_ptr)
if (*context_ptr == NULL) {
*context_ptr = malloc(sizeof(activity_logging_state_t));
memset(*context_ptr, 0, sizeof(activity_logging_state_t));
// At first run, tell Movement to run the accelerometer in the background. It will now run at this rate forever.
movement_set_accelerometer_background_rate(LIS2DW_DATA_RATE_LOWEST);
}
}