]> git.earman.xyz Git - sensor-watch.git/commitdiff
don't change the bell indicator from within background task
authorJoseph Bryant <jb@dreamcountry.org>
Sun, 18 Aug 2024 21:03:05 +0000 (22:03 +0100)
committerJoseph Bryant <jb@dreamcountry.org>
Sun, 18 Aug 2024 21:09:37 +0000 (22:09 +0100)
movement/watch_faces/complication/countdown_face.c

index 6ae3d935b2e1f2992a28d44772e792d8e06a2fcf..b48ef595a242bce821a9ae670e6f42ef096dd5c3 100644 (file)
@@ -100,6 +100,7 @@ static void draw(countdown_state_t *state, uint8_t subsecond) {
             break;
         case cd_reset:
         case cd_paused:
+            watch_clear_indicator(WATCH_INDICATOR_BELL);
             sprintf(buf, "CD  %2d%02d%02d", state->hours, state->minutes, state->seconds);
             break;
         case cd_setting:
@@ -133,7 +134,6 @@ static void pause(countdown_state_t *state) {
 static void reset(countdown_state_t *state) {
     state->mode = cd_reset;
     movement_cancel_background_task();
-    watch_clear_indicator(WATCH_INDICATOR_BELL);
     load_countdown(state);
 }