From fc8c1fc7262c35b37d8dc5443328674869443eb5 Mon Sep 17 00:00:00 2001 From: Wesley Aptekar-Cassels Date: Fri, 3 Nov 2023 06:34:31 -0400 Subject: [PATCH] moon_phase_face: Make alarm long-press reset to current day. --- movement/watch_faces/complication/moon_phase_face.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/movement/watch_faces/complication/moon_phase_face.c b/movement/watch_faces/complication/moon_phase_face.c index 9aac374a7..f74de647c 100644 --- a/movement/watch_faces/complication/moon_phase_face.c +++ b/movement/watch_faces/complication/moon_phase_face.c @@ -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;