diff options
| author | Gergely Nagy <[email protected]> | 2016-08-24 15:39:23 +0200 | 
|---|---|---|
| committer | Gergely Nagy <[email protected]> | 2016-08-24 15:39:23 +0200 | 
| commit | a058ae40e268b34ba5db45f5fd5d557d50fa5437 (patch) | |
| tree | 98cbba5d9b9d304e8bcc9384d418f71a1d2b8f0a /quantum/process_keycode/process_unicode.c | |
| parent | a9205484718ab2a74bc97884a2ea7b95882ed66d (diff) | |
| download | qmk_firmware-a058ae40e268b34ba5db45f5fd5d557d50fa5437.tar.gz qmk_firmware-a058ae40e268b34ba5db45f5fd5d557d50fa5437.zip | |
quantum: Move qk_ucis_state to process_unicode.c
In order to not declare the same variable in multiple objects (which
happens when building UCIS-enabled keymap for both the ErgoDox EZ and
the ErgoDox Infinity), move the declaration to the .c file, and keep
only an extern reference in the header.
Many thanks to @fredizzimo for spotting the error in Travis, and
suggesting the fix.
Signed-off-by: Gergely Nagy <[email protected]>
Diffstat (limited to 'quantum/process_keycode/process_unicode.c')
| -rw-r--r-- | quantum/process_keycode/process_unicode.c | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/quantum/process_keycode/process_unicode.c b/quantum/process_keycode/process_unicode.c index a1be8d2fc3..06c1694f2e 100644 --- a/quantum/process_keycode/process_unicode.c +++ b/quantum/process_keycode/process_unicode.c @@ -74,6 +74,8 @@ bool process_unicode(uint16_t keycode, keyrecord_t *record) {  }  #ifdef UCIS_ENABLE +qk_ucis_state_t qk_ucis_state; +  void qk_ucis_start(void) {    qk_ucis_state.count = 0;    qk_ucis_state.in_progress = true; | 
