mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
don't change the bell indicator from within background task
This commit is contained in:
parent
dcd4d12c0a
commit
e2c5babb2c
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue