activity log: snap back to today on timeout
This commit is contained in:
parent
c281922e4d
commit
e511059da8
@ -114,6 +114,11 @@ bool activity_logging_face_loop(movement_event_t event, void *context) {
|
|||||||
// update the display as usual
|
// update the display as usual
|
||||||
_activity_logging_face_update_display(state);
|
_activity_logging_face_update_display(state);
|
||||||
break;
|
break;
|
||||||
|
case EVENT_TIMEOUT:
|
||||||
|
// snap back to today on timeout
|
||||||
|
state->display_index = 0;
|
||||||
|
_activity_logging_face_update_display(state);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
movement_default_loop_handler(event);
|
movement_default_loop_handler(event);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user