diff options
author | Joey Castillo <jose.castillo@gmail.com> | 2021-10-18 12:15:57 -0400 |
---|---|---|
committer | Joey Castillo <jose.castillo@gmail.com> | 2021-10-18 13:55:22 -0400 |
commit | 93624f0b692648eac415a3df5689de6dee06c2db (patch) | |
tree | e9f052d71ceed7e2a8a20c42a286e97968c7015e /movement/watch_faces/settings/preferences_face.c | |
parent | 8dbbe92a9bad950219c4bc1a46871f44dda5fef3 (diff) | |
download | Sensor-Watch-93624f0b692648eac415a3df5689de6dee06c2db.tar.gz Sensor-Watch-93624f0b692648eac415a3df5689de6dee06c2db.tar.bz2 Sensor-Watch-93624f0b692648eac415a3df5689de6dee06c2db.zip |
add timeout event to give faces a chance to resign
Diffstat (limited to 'movement/watch_faces/settings/preferences_face.c')
-rw-r--r-- | movement/watch_faces/settings/preferences_face.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/movement/watch_faces/settings/preferences_face.c b/movement/watch_faces/settings/preferences_face.c index c3b7663c..98a2372d 100644 --- a/movement/watch_faces/settings/preferences_face.c +++ b/movement/watch_faces/settings/preferences_face.c @@ -17,7 +17,6 @@ void preferences_face_activate(movement_settings_t *settings, void *context) { } bool preferences_face_loop(movement_event_t event, movement_settings_t *settings, void *context) { - printf("preferences_face_loop\n"); uint8_t current_page = *((uint8_t *)context); switch (event.event_type) { case EVENT_MODE_BUTTON_UP: @@ -47,6 +46,9 @@ bool preferences_face_loop(movement_event_t event, movement_settings_t *settings break; } break; + case EVENT_TIMEOUT: + movement_move_to_face(0); + break; default: break; } |