]> git.earman.xyz Git - sensor-watch.git/commitdiff
moon phase: clear sleep animation on wake
authorJoey Castillo <joeycastillo@utexas.edu>
Wed, 21 May 2025 03:30:27 +0000 (23:30 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Wed, 21 May 2025 03:30:27 +0000 (23:30 -0400)
watch-faces/complication/moon_phase_face.c

index 9fea3692a3f71eb771f8485d1ce64ef5ea6d92e3..9e9591d3af9b1dad6710c556cb1253852eb3c859 100644 (file)
@@ -158,6 +158,7 @@ bool moon_phase_face_loop(movement_event_t event, void *context) {
 
     switch (event.event_type) {
         case EVENT_ACTIVATE:
+            if (watch_sleep_animation_is_running()) watch_stop_sleep_animation();
             _update(state, state->offset);
             break;
         case EVENT_TICK: