From 21195211a14a7ab6050e0ff8b4d98856830cc3a2 Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Tue, 25 Nov 2014 18:46:18 +0900 Subject: [PATCH] Change to fix improved ledmap --- keyboard/ghpad/ledmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keyboard/ghpad/ledmap.c b/keyboard/ghpad/ledmap.c index 2b937afc..2fa5cb19 100644 --- a/keyboard/ghpad/ledmap.c +++ b/keyboard/ghpad/ledmap.c @@ -5,7 +5,7 @@ #ifdef LEDMAP_ENABLE -static const uint8_t ledmaps[LED_COUNT] PROGMEM = { +static const uint16_t ledmaps[LED_COUNT] PROGMEM = { [0] = LEDMAP_NUM_LOCK | LEDMAP_BACKLIGHT, // LEDS1 - PB2 [1] = LEDMAP_BACKLIGHT, // LEDS6 - PF7 [2] = LEDMAP_BACKLIGHT, // LEDS11 - PF6 @@ -13,9 +13,9 @@ static const uint8_t ledmaps[LED_COUNT] PROGMEM = { [4] = LEDMAP_BACKLIGHT, // PWM - PB5 }; -uint8_t ledmap_get_code(uint8_t index) +ledmap_t ledmap_get_code(uint8_t index) { - return pgm_read_byte(&ledmaps[index]); + return (ledmap_t) { .code = pgm_read_word(&ledmaps[index]) }; } void ledmap_led_init(void)