diff options
Diffstat (limited to 'keyboards/hub16/keymaps/macro/keymap.c')
-rwxr-xr-x | keyboards/hub16/keymaps/macro/keymap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/keyboards/hub16/keymaps/macro/keymap.c b/keyboards/hub16/keymaps/macro/keymap.c index 3bf8fa31f..e4cf9da5e 100755 --- a/keyboards/hub16/keymaps/macro/keymap.c +++ b/keyboards/hub16/keymaps/macro/keymap.c | |||
@@ -54,7 +54,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
54 | 54 | ||
55 | // Keyboard is setup to 'wrap' the pressed key with an unused Fxx key, | 55 | // Keyboard is setup to 'wrap' the pressed key with an unused Fxx key, |
56 | // allowing for easy differentiation from a real keyboard. | 56 | // allowing for easy differentiation from a real keyboard. |
57 | void encoder_update_user(uint8_t index, bool clockwise) { | 57 | bool encoder_update_user(uint8_t index, bool clockwise) { |
58 | if (index == 0) { /* Left Encoder */ | 58 | if (index == 0) { /* Left Encoder */ |
59 | if (clockwise) { | 59 | if (clockwise) { |
60 | register_code(KC_WRAP); | 60 | register_code(KC_WRAP); |
@@ -76,6 +76,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
76 | unregister_code(KC_WRAP); | 76 | unregister_code(KC_WRAP); |
77 | } | 77 | } |
78 | } | 78 | } |
79 | return true; | ||
79 | } | 80 | } |
80 | 81 | ||
81 | // Below stolen from TaranVH (https://github.com/TaranVH/2nd-keyboard/blob/master/HASU_USB/F24/keymap.c) | 82 | // Below stolen from TaranVH (https://github.com/TaranVH/2nd-keyboard/blob/master/HASU_USB/F24/keymap.c) |