summaryrefslogtreecommitdiffstats
path: root/movement/watch_faces/demos/character_set_face.c
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2021-12-03 11:30:36 -0500
committerJoey Castillo <joeycastillo@utexas.edu>2021-12-03 11:30:36 -0500
commit8e2bf8591a70742addfd169832f03aa76210961c (patch)
tree64ab430603bc89a3c2b59d0c94431f2d7045db77 /movement/watch_faces/demos/character_set_face.c
parentb8c824419fc565fa08fad1cf6ad7cc9f5c395599 (diff)
downloadSensor-Watch-8e2bf8591a70742addfd169832f03aa76210961c.tar.gz
Sensor-Watch-8e2bf8591a70742addfd169832f03aa76210961c.tar.bz2
Sensor-Watch-8e2bf8591a70742addfd169832f03aa76210961c.zip
movement: allow watch faces to request zero ticks
Diffstat (limited to 'movement/watch_faces/demos/character_set_face.c')
-rw-r--r--movement/watch_faces/demos/character_set_face.c4
1 files changed, 2 insertions, 2 deletions
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);
}