From 8e2bf8591a70742addfd169832f03aa76210961c Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Fri, 3 Dec 2021 11:30:36 -0500 Subject: movement: allow watch faces to request zero ticks --- movement/watch_faces/demos/character_set_face.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'movement/watch_faces') diff --git a/movement/watch_faces/demos/character_set_face.c b/movement/watch_faces/demos/character_set_face.c index 7daea5a9..eabb133f 100644 --- a/movement/watch_faces/demos/character_set_face.c +++ b/movement/watch_faces/demos/character_set_face.c @@ -12,6 +12,7 @@ void character_set_face_activate(movement_settings_t *settings, void *context) { (void) settings; char *c = (char *)context; *c = '@'; + movement_request_tick_frequency(0); } bool character_set_face_loop(movement_event_t event, movement_settings_t *settings, void *context) { @@ -33,8 +34,6 @@ bool character_set_face_loop(movement_event_t event, movement_settings_t *settin sprintf(buf, "%c%c%c%c%c%c%c%c%c%c", *c, *c, *c, *c, *c, *c, *c, *c, *c, *c); watch_display_string(buf, 0); break; - case EVENT_TICK: - break; case EVENT_TIMEOUT: movement_move_to_face(0); break; @@ -48,4 +47,5 @@ bool character_set_face_loop(movement_event_t event, movement_settings_t *settin void character_set_face_resign(movement_settings_t *settings, void *context) { (void) settings; (void) context; + movement_request_tick_frequency(1); } -- cgit v1.2.3