From 58abc5f2fb3481faeffc0f69bd4cc7f66ebfe3d6 Mon Sep 17 00:00:00 2001 From: mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> Date: Sun, 14 Feb 2021 16:35:22 +0000 Subject: [PATCH] Update ESP32-HUB75-MatrixPanel-I2S-DMA.h Crash fix. Shouldn't actually be less than two. --- ESP32-HUB75-MatrixPanel-I2S-DMA.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ESP32-HUB75-MatrixPanel-I2S-DMA.h b/ESP32-HUB75-MatrixPanel-I2S-DMA.h index b188844..e1c1067 100644 --- a/ESP32-HUB75-MatrixPanel-I2S-DMA.h +++ b/ESP32-HUB75-MatrixPanel-I2S-DMA.h @@ -130,8 +130,8 @@ // Check compile-time only options #if PIXEL_COLOR_DEPTH_BITS > 8 #error "Pixel color depth bits cannot be greater than 8." -#elif PIXEL_COLOR_DEPTH_BITS < 1 - #error "Pixel color depth bits cannot be less than 1." +#elif PIXEL_COLOR_DEPTH_BITS < 2 + #error "Pixel color depth bits cannot be less than 2." #endif /***************************************************************************************/