diff options
author | QMK Bot <hello@qmk.fm> | 2021-12-24 00:39:31 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2021-12-24 00:39:31 +0000 |
commit | 45731efcac7ef68e0844e126b17bc701cb4a6e5d (patch) | |
tree | de593cc29aec2c52e98b8a3f8b4c0c928a953ea0 /keyboards/pearlboards/zeus/zeus.c | |
parent | b7ed91f861c7aa7efd2138e9cca664f94bcffa8e (diff) | |
parent | db149052c3067553fa357d0590ed0f9fc4460f40 (diff) |
Merge remote-tracking branch 'origin/master' into develop
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 42b77b2831..cdb8d6125d 100644 --- a/keyboards/pearlboards/zeus/zeus.c +++ b/keyboards/pearlboards/zeus/zeus.c @@ -17,8 +17,11 @@ #include "zeus.h" // Encoder rotate function -bool encoder_update_user(uint8_t index, bool clockwise) { - /* First encoder */ +#ifdef ENCODER_ENABLE +bool encoder_update_kb(uint8_t index, bool clockwise) { + if (!encoder_update_user(index, clockwise)) { + return false; + } /* First encoder */ if (index == 0) { if (clockwise) { tap_code(KC_AUDIO_VOL_UP); @@ -28,3 +31,4 @@ bool encoder_update_user(uint8_t index, bool clockwise) { } return true; } +#endif |