Skip to content

Commit

Permalink
Fix outdated encoder_map impl
Browse files Browse the repository at this point in the history
`[2]` is deprecated for `[NUM_DIRECTIONS]`, missed it when updating

Co-authored-by: Ryan <fauxpark@gmail.com>
  • Loading branch information
casuanoob and fauxpark authored Dec 6, 2023
1 parent 8533d74 commit 806339a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyboards/bastardkb/dilemma/3x5_3/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {

#ifdef ENCODER_MAP_ENABLE
// clang-format off
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[LAYER_BASE] = {ENCODER_CCW_CW(KC_WH_D, KC_WH_U), ENCODER_CCW_CW(KC_VOLD, KC_VOLU)},
[LAYER_FUNCTION] = {ENCODER_CCW_CW(KC_DOWN, KC_UP), ENCODER_CCW_CW(KC_LEFT, KC_RGHT)},
[LAYER_NAVIGATION] = {ENCODER_CCW_CW(KC_PGDN, KC_PGUP), ENCODER_CCW_CW(KC_VOLU, KC_VOLD)},
Expand Down

0 comments on commit 806339a

Please sign in to comment.