don't change the bell indicator from within background task

This commit is contained in:
Joseph Bryant 2024-08-18 22:03:05 +01:00
parent dcd4d12c0a
commit e2c5babb2c

View file

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