Skip to content

Commit

Permalink
moon_phase_face: Make alarm long-press reset to current day.
Browse files Browse the repository at this point in the history
  • Loading branch information
WesleyAC committed Nov 3, 2023
1 parent 67be6af commit fc8c1fc
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 fc8c1fc

Please sign in to comment.