summaryrefslogtreecommitdiff
path: root/keyboards/pearlboards/zeus
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-12-23 16:38:53 -0800
committerGitHub <noreply@github.com>2021-12-23 16:38:53 -0800
commitdb149052c3067553fa357d0590ed0f9fc4460f40 (patch)
treed4124c8c58b97e49703bfc4c3a8fac32da6c803e /keyboards/pearlboards/zeus
parentd563ab052e694b5fd43de6c416589877df040576 (diff)
downloadqmk_firmware-db149052c3067553fa357d0590ed0f9fc4460f40.tar.gz
qmk_firmware-db149052c3067553fa357d0590ed0f9fc4460f40.zip
[Keyboard] Fix compilation issues for Pearlboards (#15562)
Diffstat (limited to 'keyboards/pearlboards/zeus')
-rw-r--r--keyboards/pearlboards/zeus/zeus.c8
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