diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2022-01-19 14:32:33 -0500 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2022-01-19 14:32:33 -0500 |
commit | 99c518e421b356bb0935963116e1a4f5902471f9 (patch) | |
tree | 49cb2a523f9aeec7bde2fb7d1bd50181b6fd5760 /movement/movement.c | |
parent | a499cebc3c1ac6fe355fd7bcc6dc3a9352aec8a3 (diff) | |
download | Sensor-Watch-99c518e421b356bb0935963116e1a4f5902471f9.tar.gz Sensor-Watch-99c518e421b356bb0935963116e1a4f5902471f9.tar.bz2 Sensor-Watch-99c518e421b356bb0935963116e1a4f5902471f9.zip |
movement: long press on MODE always dismisses the active face
Diffstat (limited to 'movement/movement.c')
-rw-r--r-- | movement/movement.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/movement/movement.c b/movement/movement.c index 2fc08d80..3dc1c060 100644 --- a/movement/movement.c +++ b/movement/movement.c @@ -332,6 +332,11 @@ bool app_loop(void) { if (event.event_type) { event.subsecond = movement_state.subsecond; can_sleep = watch_faces[movement_state.current_watch_face].loop(event, &movement_state.settings, watch_face_contexts[movement_state.current_watch_face]); + // escape hatch: a watch face may not resign on EVENT_MODE_BUTTON_DOWN. In that case, a long press of MODE should let them out. + if (event.event_type == EVENT_MODE_LONG_PRESS) { + movement_move_to_next_face(); + can_sleep = false; + } event.event_type = EVENT_NONE; } |