diff options
author | Wesley Aptekar-Cassels <me@wesleyac.com> | 2023-11-03 06:34:31 -0400 |
---|---|---|
committer | Wesley Aptekar-Cassels <me@wesleyac.com> | 2023-11-03 06:34:31 -0400 |
commit | fc8c1fc7262c35b37d8dc5443328674869443eb5 (patch) | |
tree | 6bc568175a37e1df8359b3b147d506f6845ac334 | |
parent | 67be6affd3367c4f6c302a57fdb35fc2bda50ce6 (diff) | |
download | Sensor-Watch-fc8c1fc7262c35b37d8dc5443328674869443eb5.tar.gz Sensor-Watch-fc8c1fc7262c35b37d8dc5443328674869443eb5.tar.bz2 Sensor-Watch-fc8c1fc7262c35b37d8dc5443328674869443eb5.zip |
moon_phase_face: Make alarm long-press reset to current day.
-rw-r--r-- | movement/watch_faces/complication/moon_phase_face.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/movement/watch_faces/complication/moon_phase_face.c b/movement/watch_faces/complication/moon_phase_face.c index 9aac374a..f74de647 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; |