diff options
author | Joey Castillo <jose.castillo@gmail.com> | 2021-11-07 00:30:25 -0400 |
---|---|---|
committer | Joey Castillo <jose.castillo@gmail.com> | 2021-11-07 00:30:25 -0400 |
commit | 82e7a617598cc20f3be05f380ce0c56fda9b240e (patch) | |
tree | 0dde15f5f1a1297eca8c43db4c0638b2137b8d2a | |
parent | ef40d58afc73f8056c90eff68d01b3f3a89976cd (diff) | |
download | Sensor-Watch-82e7a617598cc20f3be05f380ce0c56fda9b240e.tar.gz Sensor-Watch-82e7a617598cc20f3be05f380ce0c56fda9b240e.tar.bz2 Sensor-Watch-82e7a617598cc20f3be05f380ce0c56fda9b240e.zip |
beat time: add low energy tick animation
-rw-r--r-- | movement/watch_faces/complications/beats_face.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/movement/watch_faces/complications/beats_face.c b/movement/watch_faces/complications/beats_face.c index 73a82719..95a9aaef 100644 --- a/movement/watch_faces/complications/beats_face.c +++ b/movement/watch_faces/complications/beats_face.c @@ -26,6 +26,7 @@ bool beats_face_loop(movement_event_t event, movement_settings_t *settings, void watch_date_time date_time; switch (event.event_type) { + case EVENT_ACTIVATE: case EVENT_TICK: date_time = watch_rtc_get_date_time(); beats = clock2beats(date_time.unit.hour, date_time.unit.minute, date_time.unit.second, event.subsecond, UTC_OFFSET); @@ -34,6 +35,7 @@ bool beats_face_loop(movement_event_t event, movement_settings_t *settings, void watch_display_string(buf, 0); break; case EVENT_LOW_ENERGY_UPDATE: + if (!watch_tick_animation_is_running()) watch_start_tick_animation(432); date_time = watch_rtc_get_date_time(); beats = clock2beats(date_time.unit.hour, date_time.unit.minute, date_time.unit.second, event.subsecond, UTC_OFFSET); sprintf(buf, "bt %4d ", (int)beats); |