From: Joey Castillo Date: Thu, 20 Mar 2025 05:30:03 +0000 (-0400) Subject: activity logging: if this was it, that was dumb. X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=0b20ae3e2d0171bb3f6f60d02a080da7f8666c8b;p=sensor-watch.git activity logging: if this was it, that was dumb. --- diff --git a/watch-faces/sensor/activity_logging_face.c b/watch-faces/sensor/activity_logging_face.c index e8c1b83..28c3b9b 100644 --- a/watch-faces/sensor/activity_logging_face.c +++ b/watch-faces/sensor/activity_logging_face.c @@ -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