diff options
Diffstat (limited to 'users/ninjonas/encoder.c')
-rw-r--r-- | users/ninjonas/encoder.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/users/ninjonas/encoder.c b/users/ninjonas/encoder.c index 3d56ff89e..f1b448b79 100644 --- a/users/ninjonas/encoder.c +++ b/users/ninjonas/encoder.c | |||
@@ -15,7 +15,7 @@ | |||
15 | */ | 15 | */ |
16 | #include "ninjonas.h" | 16 | #include "ninjonas.h" |
17 | 17 | ||
18 | #ifdef ENCODER_ENABLE | 18 | #ifdef ENCODER_ENABLE |
19 | void left_encoder_cw(void) { | 19 | void left_encoder_cw(void) { |
20 | switch (get_highest_layer(layer_state)) { | 20 | switch (get_highest_layer(layer_state)) { |
21 | case _LOWER: | 21 | case _LOWER: |
@@ -81,7 +81,7 @@ void right_encoder_acw(void) { | |||
81 | } | 81 | } |
82 | } | 82 | } |
83 | 83 | ||
84 | void encoder_update_user(uint8_t index, bool clockwise) { | 84 | bool encoder_update_user(uint8_t index, bool clockwise) { |
85 | encoder_rotated_timer = timer_read(); | 85 | encoder_rotated_timer = timer_read(); |
86 | if (index == 0) { | 86 | if (index == 0) { |
87 | left_encoder_rotated = true; | 87 | left_encoder_rotated = true; |
@@ -99,6 +99,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
99 | right_encoder_acw(); | 99 | right_encoder_acw(); |
100 | } | 100 | } |
101 | } | 101 | } |
102 | return true; | ||
102 | } | 103 | } |
103 | 104 | ||
104 | #endif \ No newline at end of file | 105 | #endif |