From: Joey Castillo Date: Sun, 18 May 2025 16:06:39 +0000 (-0400) Subject: activity log: update today's count at top of minute X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=c281922e4d51d924c6b3ab99b90958202eb0264b;p=sensor-watch.git activity log: update today's count at top of minute --- diff --git a/watch-faces/sensor/activity_logging_face.c b/watch-faces/sensor/activity_logging_face.c index dddbc5a..3de3b51 100644 --- a/watch-faces/sensor/activity_logging_face.c +++ b/watch-faces/sensor/activity_logging_face.c @@ -93,6 +93,13 @@ bool activity_logging_face_loop(movement_event_t event, void *context) { } _activity_logging_face_update_display(state); break; + case EVENT_TICK: + { + if (movement_get_local_date_time().unit.second == 0 && state->display_index == 0) { + _activity_logging_face_update_display(state); + } + } + break; case EVENT_BACKGROUND_TASK: { size_t pos = state->data_points % ACTIVITY_LOGGING_NUM_DAYS;