From b31fedc1c6e392fe2032964949d4a55b97f642ee Mon Sep 17 00:00:00 2001 From: Daniel Czeschner Date: Thu, 12 Jan 2023 14:49:17 +0100 Subject: [PATCH] use LED_COUNT constant for led specific arrays --- Firmware/Config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Firmware/Config.h b/Firmware/Config.h index 5310258..a89eace 100644 --- a/Firmware/Config.h +++ b/Firmware/Config.h @@ -131,7 +131,7 @@ const char layerButtonFunc[MAX_LAYER][12][MAX_KEY_LENGTH + 1] PROGMEM = { }; // led rgb colors for each layer and key (led index) -const byte defaultLEDColors[MAX_LAYER][15][3] PROGMEM = { +const byte defaultLEDColors[MAX_LAYER][LED_COUNT][3] PROGMEM = { { { 0, 0, 0 }, // red, green, blue { 0, 0, 1 }, @@ -223,7 +223,7 @@ const byte defaultLEDColors[MAX_LAYER][15][3] PROGMEM = { // first index is based on led-index. // second index: 0=red; 1=green; 2=blue // used to restore after wakeup -byte lastLEDColors[15][3] = { +byte lastLEDColors[LED_COUNT][3] = { {0, 0, 0}, {0, 0, 0}, {0, 0, 0},