Skip to content

Commit

Permalink
use LED_COUNT constant for led specific arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
Blo0dR0gue committed Jan 12, 2023
1 parent f34596b commit b31fedc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Firmware/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down Expand Up @@ -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},
Expand Down

0 comments on commit b31fedc

Please sign in to comment.