From 6765fd830fbba56930a745d2c3e381dac9981af0 Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Tue, 16 Jul 2019 01:18:34 +0300 Subject: [PATCH] Fix assert condition --- code/espurna/light.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/espurna/light.ino b/code/espurna/light.ino index b6a5cbdb..f3230951 100644 --- a/code/espurna/light.ino +++ b/code/espurna/light.ino @@ -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 = {