summaryrefslogtreecommitdiff
path: root/keyboards/rgbkb/sol
diff options
context:
space:
mode:
authorXScorpion2 <rcalt2vt@gmail.com>2019-12-21 23:39:26 -0600
committerDrashna Jaelre <drashna@live.com>2019-12-21 21:39:26 -0800
commit0e2ff9b384fa2ec10d2555ef2e87915f453cecab (patch)
treee6f151a11c81582136eb8e963d30aa6842fd15ec /keyboards/rgbkb/sol
parent376419a4f7e0489111a9ac24acc847342fe9d64d (diff)
Readded lost pgm_read_word code to encoder array lookups (#7577)
Diffstat (limited to 'keyboards/rgbkb/sol')
-rw-r--r--keyboards/rgbkb/sol/keymaps/default/keymap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/rgbkb/sol/keymaps/default/keymap.c b/keyboards/rgbkb/sol/keymaps/default/keymap.c
index 51039e48e2..e08e02c48e 100644
--- a/keyboards/rgbkb/sol/keymaps/default/keymap.c
+++ b/keyboards/rgbkb/sol/keymaps/default/keymap.c
@@ -234,12 +234,12 @@ void encoder_update_user(uint8_t index, bool clockwise) {
#endif
{
uint8_t layer = biton32(layer_state);
- uint16_t keycode = encoders[layer][index][clockwise];
+ uint16_t keycode = pgm_read_word(&encoders[layer][index][clockwise]);
while (keycode == KC_TRANSPARENT && layer > 0)
{
layer--;
if ((layer_state & (1 << layer)) != 0)
- keycode = encoders[layer][index][clockwise];
+ keycode = pgm_read_word(&encoders[layer][index][clockwise]);
}
if (keycode != KC_TRANSPARENT)
tap_code16(keycode);