Skip to content

Commit

Permalink
use long press to enter countdown settings
Browse files Browse the repository at this point in the history
  • Loading branch information
joeycastillo committed Sep 18, 2024
1 parent 0194044 commit f53b753
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions movement/watch_faces/complication/countdown_face.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,17 +213,13 @@ bool countdown_face_loop(movement_event_t event, movement_settings_t *settings,
case EVENT_LIGHT_BUTTON_UP:
switch(state->mode) {
case cd_running:
case cd_reset:
movement_illuminate_led();
break;
case cd_paused:
reset(state);
button_beep(settings);
break;
case cd_reset:
state->mode = cd_setting;
movement_request_tick_frequency(4);
button_beep(settings);
break;
case cd_setting:
state->selection++;
if(state->selection >= CD_SELECTIONS) {
Expand Down Expand Up @@ -258,7 +254,10 @@ bool countdown_face_loop(movement_event_t event, movement_settings_t *settings,
draw(state, event.subsecond);
break;
case EVENT_ALARM_LONG_PRESS:
if (state->mode == cd_setting) {
if (state->mode == cd_paused) {
state->mode = cd_setting;
movement_request_tick_frequency(4);
} else if (state->mode == cd_setting) {
quick_ticks_running = true;
movement_request_tick_frequency(8);
}
Expand Down

0 comments on commit f53b753

Please sign in to comment.