diff options
Diffstat (limited to 'keyboards/hadron/ver3/ver3.c')
-rw-r--r-- | keyboards/hadron/ver3/ver3.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/keyboards/hadron/ver3/ver3.c b/keyboards/hadron/ver3/ver3.c index 1491caba4..0664bf4b0 100644 --- a/keyboards/hadron/ver3/ver3.c +++ b/keyboards/hadron/ver3/ver3.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include "action_layer.h" | 18 | #include "action_layer.h" |
19 | #include "haptic.h" | 19 | #include "haptic.h" |
20 | 20 | ||
21 | |||
21 | #ifdef RGB_MATRIX_ENABLE | 22 | #ifdef RGB_MATRIX_ENABLE |
22 | #include "rgb_matrix.h" | 23 | #include "rgb_matrix.h" |
23 | 24 | ||
@@ -181,9 +182,13 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | |||
181 | return process_record_user(keycode, record); | 182 | return process_record_user(keycode, record); |
182 | } | 183 | } |
183 | 184 | ||
184 | void encoder_update_kb(uint8_t index, bool clockwise) { | 185 | bool encoder_update_user(uint8_t index, bool clockwise); |
186 | |||
187 | bool encoder_update_kb(uint8_t index, bool clockwise) { | ||
188 | if (!encoder_update_user(index, clockwise)) return false; | ||
185 | encoder_value = (encoder_value + (clockwise ? 1 : -1)) % 64; | 189 | encoder_value = (encoder_value + (clockwise ? 1 : -1)) % 64; |
186 | queue_for_send = true; | 190 | queue_for_send = true; |
191 | return true; | ||
187 | } | 192 | } |
188 | 193 | ||
189 | #endif | 194 | #endif |