remove uses of deprecated watch_gpio functions

This commit is contained in:
joeycastillo
2024-10-07 09:01:21 -04:00
parent ab861d81d1
commit 4933a84a2c
14 changed files with 43 additions and 46 deletions

View File

@@ -556,7 +556,7 @@ bool wordle_face_loop(movement_event_t event, void *context) {
display_letter(state, true);
if (state->word_elements[state->position] == WORDLE_NUM_VALID_LETTERS) break;
#if (WORDLE_USE_RANDOM_GUESS != 0)
if (watch_get_pin_level(BTN_LIGHT) &&
if (HAL_GPIO_BTN_LIGHT_read() &&
(state->using_random_guess || (state->attempt == 0 && state->position == 0))) {
insert_random_guess(state);
break;