Skip to content

Commit

Permalink
Fix assert condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed Jul 17, 2019
1 parent e169a9d commit 6765fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/espurna/light.ino
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const char _light_channel_desc[5][5] PROGMEM = {
{'R', 'G', 'B', 'W', 0},
{'R', 'G', 'B', 'W', 'C'}
};
static_assert((LIGHT_CHANNELS * LIGHT_CHANNELS) == (sizeof(_light_channel_desc)), "Out-of-bounds array access");
static_assert((LIGHT_CHANNELS * LIGHT_CHANNELS) <= (sizeof(_light_channel_desc)), "Out-of-bounds array access");

// Gamma Correction lookup table (8 bit)
const unsigned char _light_gamma_table[] PROGMEM = {
Expand Down

0 comments on commit 6765fd8

Please sign in to comment.