Browse Source

Fix assert condition

master
Max Prokhorov 4 years ago
parent
commit
6765fd830f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/light.ino

+ 1
- 1
code/espurna/light.ino View File

@ -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 = {


Loading…
Cancel
Save