diff options
Diffstat (limited to 'keyboards/pearlboards/zeus/zeus.c')
-rw-r--r-- | keyboards/pearlboards/zeus/zeus.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/keyboards/pearlboards/zeus/zeus.c b/keyboards/pearlboards/zeus/zeus.c index 42b77b283..cdb8d6125 100644 --- a/keyboards/pearlboards/zeus/zeus.c +++ b/keyboards/pearlboards/zeus/zeus.c | |||
@@ -17,8 +17,11 @@ | |||
17 | #include "zeus.h" | 17 | #include "zeus.h" |
18 | 18 | ||
19 | // Encoder rotate function | 19 | // Encoder rotate function |
20 | bool encoder_update_user(uint8_t index, bool clockwise) { | 20 | #ifdef ENCODER_ENABLE |
21 | /* First encoder */ | 21 | bool encoder_update_kb(uint8_t index, bool clockwise) { |
22 | if (!encoder_update_user(index, clockwise)) { | ||
23 | return false; | ||
24 | } /* First encoder */ | ||
22 | if (index == 0) { | 25 | if (index == 0) { |
23 | if (clockwise) { | 26 | if (clockwise) { |
24 | tap_code(KC_AUDIO_VOL_UP); | 27 | tap_code(KC_AUDIO_VOL_UP); |
@@ -28,3 +31,4 @@ bool encoder_update_user(uint8_t index, bool clockwise) { | |||
28 | } | 31 | } |
29 | return true; | 32 | return true; |
30 | } | 33 | } |
34 | #endif | ||