Skip to content

Commit

Permalink
Repaired cherrypick issue
Browse files Browse the repository at this point in the history
  • Loading branch information
voloved committed Nov 9, 2024
1 parent 14c5be4 commit 17cee7c
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions movement/watch_faces/complication/wordle_face.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ void wordle_face_setup(movement_settings_t *settings, uint8_t watch_face_index,
state->curr_screen = SCREEN_TITLE;
state->skip_wrong_letter = false;
reset_all_elements(state);
memset(state->not_to_use, 0xff, sizeof(state->not_to_use));
}
// Do any pin or peripheral setup here; this will be called whenever the watch wakes from deep sleep.
}
Expand Down Expand Up @@ -533,28 +534,6 @@ void wordle_face_activate(movement_settings_t *settings, void *context) {
display_title(state);
}

void wordle_face_setup(movement_settings_t *settings, uint8_t watch_face_index, void ** context_ptr) {
(void) settings;
(void) watch_face_index;
if (*context_ptr == NULL) {
*context_ptr = malloc(sizeof(wordle_state_t));
memset(*context_ptr, 0, sizeof(wordle_state_t));
wordle_state_t *state = (wordle_state_t *)*context_ptr;
state->curr_screen = SCREEN_TITLE;
state->skip_wrong_letter = true;
reset_all_elements(state);
memset(state->not_to_use, 0xff, sizeof(state->not_to_use));
}
// Do any pin or peripheral setup here; this will be called whenever the watch wakes from deep sleep.
}

void wordle_face_activate(movement_settings_t *settings, void *context) {
(void) settings;
wordle_state_t *state = (wordle_state_t *)context;
_activate(state);

}

bool wordle_face_loop(movement_event_t event, movement_settings_t *settings, void *context) {
wordle_state_t *state = (wordle_state_t *)context;

Expand Down

0 comments on commit 17cee7c

Please sign in to comment.