1
0

Change to fix improved ledmap

This commit is contained in:
Kai Ryu 2014-11-25 18:46:18 +09:00
parent f6643a082c
commit 21195211a1

View File

@ -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)