diff options
author | Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com> | 2024-03-05 01:51:18 -0300 |
---|---|---|
committer | Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com> | 2024-03-08 06:52:49 -0300 |
commit | 7208df1dfb560a29962e7054e497dcb89c64ea5a (patch) | |
tree | 3ca39e2032bb47e398e2d99565722a51d95bdc89 | |
parent | f35cb849de5ddd2abc6c1e242c0f8b3fe8049bd8 (diff) | |
parent | fc8c1fc7262c35b37d8dc5443328674869443eb5 (diff) | |
download | Sensor-Watch-7208df1dfb560a29962e7054e497dcb89c64ea5a.tar.gz Sensor-Watch-7208df1dfb560a29962e7054e497dcb89c64ea5a.tar.bz2 Sensor-Watch-7208df1dfb560a29962e7054e497dcb89c64ea5a.zip |
Merge branch 'moon-phase-face-long-press-reset'
Makes a long press of the ALARM button reset the face to current day.
Reviewed-by: Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>
Tested-by: Wesley Aptekar-Cassels <me@wesleyac.com>
Tested-by: Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>
Tested-on-hardware-by: Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>
Signed-off-by: Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/316
-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; |