From: Joseph Bryant Date: Sun, 18 Aug 2024 21:03:05 +0000 (+0100) Subject: don't change the bell indicator from within background task X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=e2c5babb2c7cd0141a5a78e9f94458804bbd9764;p=sensor-watch.git don't change the bell indicator from within background task --- diff --git a/movement/watch_faces/complication/countdown_face.c b/movement/watch_faces/complication/countdown_face.c index 6ae3d93..b48ef59 100644 --- a/movement/watch_faces/complication/countdown_face.c +++ b/movement/watch_faces/complication/countdown_face.c @@ -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); }