summaryrefslogtreecommitdiff
path: root/keyboards/clueboard/2x1800/2021/2021.c
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2024-07-14 06:38:04 +0100
committerGitHub <noreply@github.com>2024-07-14 06:38:04 +0100
commitc0aca9f45cce70d590f8644374b957b0161eaabc (patch)
treef66e31771c4f1ca8b0dc3183eb379d319ce63f0b /keyboards/clueboard/2x1800/2021/2021.c
parente76069ea4eb73d97c85cf0272fe14285fad32fb8 (diff)
Various fixes for keyboards not implementing callbacks correctly (#24116)
Diffstat (limited to 'keyboards/clueboard/2x1800/2021/2021.c')
-rw-r--r--keyboards/clueboard/2x1800/2021/2021.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/keyboards/clueboard/2x1800/2021/2021.c b/keyboards/clueboard/2x1800/2021/2021.c
index 5274f76e9c..d140c1cf15 100644
--- a/keyboards/clueboard/2x1800/2021/2021.c
+++ b/keyboards/clueboard/2x1800/2021/2021.c
@@ -96,16 +96,11 @@ void matrix_init_kb(void) {
matrix_init_user();
}
-__attribute__ ((weak))
-bool encoder_update_keymap(int8_t index, bool clockwise) {
- return false;
-}
-
#define NUM_COLUMNS 8*MAX7219_CONTROLLERS
uint8_t led_position[2] = {0,0}; // The location of the cursor in the matrix
bool encoder_update_kb(uint8_t index, bool clockwise) {
- if (!encoder_update_keymap(index, clockwise)) {
+ if (encoder_update_user(index, clockwise)) {
#if defined(DRAWING_TOY_MODE)
// Encoder 1, left
if (index == 0 && clockwise) {