mirror of
https://github.com/joeycastillo/second-movement.git
synced 2025-10-29 19:47:40 +00:00
activity log: update today's count at top of minute
This commit is contained in:
parent
51e6d62a1b
commit
c281922e4d
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user