summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErez Zukerman <bulk@ezuk.org>2018-11-20 15:17:43 -0500
committerGitHub <noreply@github.com>2018-11-20 15:17:43 -0500
commit1485098443b66462b67137715a1ba7c589db9150 (patch)
tree36423234434eadd1a53a26c13d3f5f213dd2465b
parent303fa4ec3337760922a17fb19150c1aa3f58a3b3 (diff)
parent26156e84e8913754586b16fecd41f268ede722df (diff)
Merge pull request #4453 from drashna/fix_ucis
Fix UCIS code
-rw-r--r--quantum/process_keycode/process_ucis.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/quantum/process_keycode/process_ucis.c b/quantum/process_keycode/process_ucis.c
index 380199771d..8deb24a867 100644
--- a/quantum/process_keycode/process_ucis.c
+++ b/quantum/process_keycode/process_ucis.c
@@ -93,6 +93,8 @@ void register_ucis(const char *hex) {
}
bool process_ucis (uint16_t keycode, keyrecord_t *record) {
+ uint8_t i;
+
unicode_input_mode_init();
if (!qk_ucis_state.in_progress)
@@ -122,7 +124,7 @@ bool process_ucis (uint16_t keycode, keyrecord_t *record) {
if (keycode == KC_ENT || keycode == KC_SPC || keycode == KC_ESC) {
bool symbol_found = false;
- for (uint8_t i = qk_ucis_state.count; i > 0; i--) {
+ for (i = qk_ucis_state.count; i > 0; i--) {
register_code (KC_BSPC);
unregister_code (KC_BSPC);
wait_ms(UNICODE_TYPE_DELAY);
@@ -134,7 +136,7 @@ bool process_ucis (uint16_t keycode, keyrecord_t *record) {
}
unicode_input_start();
- for (uint8_t i = 0; ucis_symbol_table[i].symbol; i++) {
+ for (i = 0; ucis_symbol_table[i].symbol; i++) {
if (is_uni_seq (ucis_symbol_table[i].symbol)) {
symbol_found = true;
register_ucis(ucis_symbol_table[i].code + 2);