]> git.earman.xyz Git - sensor-watch.git/commitdiff
world clock: blink colon in low energy mode
authorJoey Castillo <joeycastillo@utexas.edu>
Thu, 29 May 2025 03:43:13 +0000 (23:43 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Thu, 29 May 2025 03:43:17 +0000 (23:43 -0400)
watch-faces/clock/world_clock_face.c

index dadf755ec4905e18936735a7c2563c05c804394c..49812628a6651d2bbffb90896abdddf0be739a6b 100644 (file)
@@ -153,7 +153,10 @@ void world_clock_face_activate(void *context) {
     state->current_screen = 0;
     _update_timezone_offset(state);
 
-    if (watch_sleep_animation_is_running()) watch_stop_sleep_animation();
+    if (watch_sleep_animation_is_running()) {
+        watch_stop_sleep_animation();
+        watch_stop_blink();
+    }
 }
 
 static bool world_clock_face_do_display_mode(movement_event_t event, world_clock_state_t *state) {
@@ -210,6 +213,7 @@ static bool world_clock_face_do_display_mode(movement_event_t event, world_clock
                     if (!watch_sleep_animation_is_running()) {
                         watch_display_text(WATCH_POSITION_SECONDS, "  ");
                         watch_start_sleep_animation(500);
+                        watch_start_indicator_blink_if_possible(WATCH_INDICATOR_COLON, 500);
                     }
                 } else {
                     watch_display_text(WATCH_POSITION_SECONDS, buf + 6);