From db149052c3067553fa357d0590ed0f9fc4460f40 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Thu, 23 Dec 2021 16:38:53 -0800 Subject: [Keyboard] Fix compilation issues for Pearlboards (#15562) --- keyboards/pearlboards/zeus/zeus.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'keyboards/pearlboards/zeus') 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 -- cgit v1.2.1