movement: long press on MODE always dismisses the active face

This commit is contained in:
Joey Castillo
2022-01-19 14:32:33 -05:00
parent a499cebc3c
commit 99c518e421
3 changed files with 7 additions and 2 deletions

View File

@@ -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;
}