aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2021-02-14 16:35:22 +0000
committermrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2021-02-14 16:35:22 +0000
commit58abc5f2fb3481faeffc0f69bd4cc7f66ebfe3d6 (patch)
tree8815cad5c330f45390c68960ead517c3b827a103
parent889ed51fe10c4c2b488432a26e832785dd0ee270 (diff)
Update ESP32-HUB75-MatrixPanel-I2S-DMA.h
Crash fix. Shouldn't actually be less than two.
-rw-r--r--ESP32-HUB75-MatrixPanel-I2S-DMA.h4
1 files 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
/***************************************************************************************/