]> git.earman.xyz Git - sensor-watch.git/commitdiff
activity logging: if this was it, that was dumb.
authorJoey Castillo <joeycastillo@utexas.edu>
Thu, 20 Mar 2025 05:30:03 +0000 (01:30 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Thu, 20 Mar 2025 05:30:03 +0000 (01:30 -0400)
watch-faces/sensor/activity_logging_face.c

index e8c1b838e43cc709f1b065048ba029bd828feee3..28c3b9bcbc51ab29070c8f4d99f9f2946826a177 100644 (file)
@@ -36,7 +36,7 @@ static void _activity_logging_face_update_display(activity_logging_state_t *stat
     char buf[8];
     uint32_t count = 0;
     movement_activity_data_point *data_points = movement_get_data_log(&count);
-    int32_t pos = ((int32_t)count - 1 - (int32_t)state->display_index) % ACTIVITY_LOGGING_NUM_DATA_POINTS;
+    int32_t pos = ((int32_t)count - 1 - (int32_t)state->display_index) % MOVEMENT_NUM_DATA_POINTS;
     watch_date_time_t timestamp = movement_get_local_date_time();
 
     // round to previous 5 minute increment