]> git.earman.xyz Git - sensor-watch.git/commitdiff
Moved sleep animation check into the function rather than the switch statement
authorDavid Volovskiy <devolov@gmail.com>
Wed, 27 Aug 2025 21:17:11 +0000 (17:17 -0400)
committerDavid Volovskiy <devolov@gmail.com>
Wed, 27 Aug 2025 21:17:11 +0000 (17:17 -0400)
watch-faces/complication/endless_runner_face.c

index a3f7e371f5f708587bee296f24106170d391553b..a0dc85dbf0b9445b0629a6186a1e59c4465562ce 100644 (file)
@@ -551,6 +551,9 @@ void endless_runner_face_activate(void *context) {
     ball_arr_seg = is_custom_lcd ? custom_ball_arr_seg : classic_ball_arr_seg;
     obstacle_arr_com = is_custom_lcd ? custom_obstacle_arr_com : classic_obstacle_arr_com;
     obstacle_arr_seg = is_custom_lcd ? custom_obstacle_arr_seg : classic_obstacle_arr_seg;
+    if (watch_sleep_animation_is_running()) {
+        watch_stop_blink();
+    }
 }
 
 bool endless_runner_face_loop(movement_event_t event, void *context) {
@@ -558,9 +561,6 @@ bool endless_runner_face_loop(movement_event_t event, void *context) {
     switch (event.event_type) {
         case EVENT_ACTIVATE:
             disable_tap_control(state);
-            if (watch_sleep_animation_is_running()) {
-                watch_stop_blink();
-            }
             check_and_reset_hi_score(state);
             display_title(state);
             break;