diff --git a/layouts/community/ergodox/algernon/keymap.c b/layouts/community/ergodox/algernon/keymap.c index fb6de1b721d5..04f27d94e9dc 100644 --- a/layouts/community/ergodox/algernon/keymap.c +++ b/layouts/community/ergodox/algernon/keymap.c @@ -1189,10 +1189,10 @@ void qk_ucis_symbol_fallback (void) { for (uint8_t i = 0; i < qk_ucis_state.count - 1; i++) { uint8_t code; - if ((qk_ucis_state.codes[i] >= M(A_1)) && (qk_ucis_state.codes[i] <= M(A_0))) - code = qk_ucis_state.codes[i] - M(A_1) + KC_1; + if ((qk_ucis_state.keycodes[i] >= M(A_1)) && (qk_ucis_state.keycodes[i] <= M(A_0))) + code = qk_ucis_state.keycodes[i] - M(A_1) + KC_1; else - code = qk_ucis_state.codes[i]; + code = qk_ucis_state.keycodes[i]; register_code(code); unregister_code(code); wait_ms (10); diff --git a/quantum/process_keycode/process_ucis.c b/quantum/process_keycode/process_ucis.c index c7bef3d31b7b..336ac83d2364 100644 --- a/quantum/process_keycode/process_ucis.c +++ b/quantum/process_keycode/process_ucis.c @@ -44,16 +44,16 @@ static bool is_uni_seq(char *seq) { } else { keycode = seq[i] - 'a' + KC_A; } - if (i > qk_ucis_state.count || qk_ucis_state.codes[i] != keycode) { + if (i > qk_ucis_state.count || qk_ucis_state.keycodes[i] != keycode) { return false; } } - return qk_ucis_state.codes[i] == KC_ENT || qk_ucis_state.codes[i] == KC_SPC; + return qk_ucis_state.keycodes[i] == KC_ENT || qk_ucis_state.keycodes[i] == KC_SPC; } __attribute__((weak)) void qk_ucis_symbol_fallback(void) { for (uint8_t i = 0; i < qk_ucis_state.count - 1; i++) { - uint8_t keycode = qk_ucis_state.codes[i]; + uint8_t keycode = qk_ucis_state.keycodes[i]; register_code(keycode); unregister_code(keycode); wait_ms(UNICODE_TYPE_DELAY); @@ -81,7 +81,7 @@ bool process_ucis(uint16_t keycode, keyrecord_t *record) { return false; } - qk_ucis_state.codes[qk_ucis_state.count] = keycode; + qk_ucis_state.keycodes[qk_ucis_state.count] = keycode; qk_ucis_state.count++; switch (keycode) { diff --git a/quantum/process_keycode/process_ucis.h b/quantum/process_keycode/process_ucis.h index a667430bdace..5da922acfbc4 100644 --- a/quantum/process_keycode/process_ucis.h +++ b/quantum/process_keycode/process_ucis.h @@ -33,7 +33,7 @@ typedef struct { typedef struct { uint8_t count; - uint16_t codes[UCIS_MAX_SYMBOL_LENGTH]; + uint16_t keycodes[UCIS_MAX_SYMBOL_LENGTH]; bool in_progress : 1; } qk_ucis_state_t;