summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2023-08-30 01:07:38 +0100
committerGitHub <noreply@github.com>2023-08-30 01:07:38 +0100
commit281541fe1b6f369d63dd77f00a0f133e6f3d4f73 (patch)
tree3568721316989794d755e8b8b72d65df926b7bb4
parent6d7344428afb283b4ca143a7f3731de61f9fc1e3 (diff)
Fix invalid encoder_map declaration (#21868)
-rw-r--r--keyboards/chosfox/cf81/keymaps/default/keymap.c2
-rw-r--r--keyboards/chosfox/cf81/keymaps/via/keymap.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/chosfox/cf81/keymaps/default/keymap.c b/keyboards/chosfox/cf81/keymaps/default/keymap.c
index 753bdebc0a..030ef2e2c1 100644
--- a/keyboards/chosfox/cf81/keymaps/default/keymap.c
+++ b/keyboards/chosfox/cf81/keymaps/default/keymap.c
@@ -61,7 +61,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
#if defined(ENCODER_MAP_ENABLE)
-const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[WIN_B] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) },
[WIN_FN] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) },
[MAC_B] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) },
diff --git a/keyboards/chosfox/cf81/keymaps/via/keymap.c b/keyboards/chosfox/cf81/keymaps/via/keymap.c
index 753bdebc0a..030ef2e2c1 100644
--- a/keyboards/chosfox/cf81/keymaps/via/keymap.c
+++ b/keyboards/chosfox/cf81/keymaps/via/keymap.c
@@ -61,7 +61,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
#if defined(ENCODER_MAP_ENABLE)
-const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[WIN_B] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) },
[WIN_FN] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) },
[MAC_B] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) },