Skip to content

Commit

Permalink
Merge branch 'moon-phase-face-long-press-reset'
Browse files Browse the repository at this point in the history
Makes a long press of the ALARM button reset the face to current day.

Tested-by: Wesley Aptekar-Cassels <[email protected]>
Reviewed-by: Matheus Afonso Martins Moreira <[email protected]>
Signed-off-by: Matheus Afonso Martins Moreira <[email protected]>
GitHub-Pull-Request: joeycastillo#316
  • Loading branch information
matheusmoreira committed Mar 5, 2024
2 parents efff14b + fc8c1fc commit e1d6c30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions movement/watch_faces/complication/moon_phase_face.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ bool moon_phase_face_loop(movement_event_t event, movement_settings_t *settings,
state->offset += 86400;
_update(settings, state, state->offset);
break;
case EVENT_ALARM_LONG_PRESS:
state->offset = 0;
_update(settings, state, state->offset);
break;
case EVENT_TIMEOUT:
// QUESTION: Should timeout reset offset to 0?
break;
Expand Down

0 comments on commit e1d6c30

Please sign in to comment.