summaryrefslogtreecommitdiffstats
path: root/keyboards/ck60i/ck60i.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ck60i/ck60i.c')
-rw-r--r--keyboards/ck60i/ck60i.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/keyboards/ck60i/ck60i.c b/keyboards/ck60i/ck60i.c
index 2516e636de..7e5cd33218 100644
--- a/keyboards/ck60i/ck60i.c
+++ b/keyboards/ck60i/ck60i.c
@@ -17,12 +17,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "ck60i.h"
-__attribute__((weak)) void encoder_update_user(uint8_t index, bool clockwise) {
+bool encoder_update_kb(uint8_t index, bool clockwise) {
+ if (!encoder_update_user(index, clockwise)) return false;
if (index == 0) { /* First encoder */
if (clockwise) {
tap_code(KC_VOLU);
} else {
tap_code(KC_VOLD);
}
- }
+ }
+ return true;
}