From 910eeda0e7d9c1e435cc6c446ed5281c676f37af Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 6 Feb 2022 19:50:28 -0800 Subject: [PATCH] Fixed LED map indices --- keymaps/default/keymap.c | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/keymaps/default/keymap.c b/keymaps/default/keymap.c index 7715f31..abc8db7 100644 --- a/keymaps/default/keymap.c +++ b/keymaps/default/keymap.c @@ -36,17 +36,6 @@ enum layer_indices { LAYER_RUSSIAN_IDX, LAYER_RUSSIAN_SYMBOLS_IDX, }; -enum led_map_indices { - LAYER_COLEMAK_LEDS_IDX, - LAYER_NUMPAD_LEDS_IDX, - LAYER_SYMBOLS_LEDS_IDX, - LAYER_ARROWS_LEDS_IDX, - LAYER_FKEYS_LEDS_IDX, - LAYER_NAVIGATE_LEDS_IDX, - LAYER_DESKTOP_LEDS_IDX, - LAYER_RUSSIAN_LEDS_IDX, - LAYER_RUSSIAN_SYMBOLS_LEDS_IDX, -}; const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [LAYER_MAIN_IDX] = LAYER_MAIN, [LAYER_COLEMAK_IDX] = LAYER_COLEMAK, @@ -61,15 +50,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [LAYER_RUSSIAN_SYMBOLS_IDX] = LAYER_RUSSIAN_SYMBOLS, }; const uint8_t PROGMEM ledmap[][DRIVER_LED_TOTAL][3] = { - [LAYER_COLEMAK_LEDS_IDX] = LAYER_COLEMAK_LEDS, - [LAYER_NUMPAD_LEDS_IDX] = LAYER_NUMPAD_LEDS, - [LAYER_SYMBOLS_LEDS_IDX] = LAYER_SYMBOLS_LEDS, - [LAYER_ARROWS_LEDS_IDX] = LAYER_ARROWS_LEDS, - [LAYER_FKEYS_LEDS_IDX] = LAYER_FKEYS_LEDS, - [LAYER_NAVIGATE_LEDS_IDX] = LAYER_NAVIGATE_LEDS, - [LAYER_DESKTOP_LEDS_IDX] = LAYER_DESKTOP_LEDS, - [LAYER_RUSSIAN_LEDS_IDX] = LAYER_RUSSIAN_LEDS, - [LAYER_RUSSIAN_SYMBOLS_LEDS_IDX] = LAYER_RUSSIAN_SYMBOLS_LEDS + [LAYER_COLEMAK_IDX] = LAYER_COLEMAK_LEDS, + [LAYER_NUMPAD_IDX] = LAYER_NUMPAD_LEDS, + [LAYER_SYMBOLS_IDX] = LAYER_SYMBOLS_LEDS, + [LAYER_ARROWS_IDX] = LAYER_ARROWS_LEDS, + [LAYER_FKEYS_IDX] = LAYER_FKEYS_LEDS, + [LAYER_NAVIGATE_IDX] = LAYER_NAVIGATE_LEDS, + [LAYER_DESKTOP_IDX] = LAYER_DESKTOP_LEDS, + [LAYER_RUSSIAN_IDX] = LAYER_RUSSIAN_LEDS, + [LAYER_RUSSIAN_SYMBOLS_IDX] = LAYER_RUSSIAN_SYMBOLS_LEDS };