aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2022-10-23 12:35:08 +0100
committermrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2022-10-23 12:35:08 +0100
commit0cba8a7345d21a252ed67c7fb8b0dae46cce731d (patch)
tree624e9bfd56598ead7110dfefd047b54db984af32 /src
parentd58ae512b488566391d48f2fd80cacf66b7061fd (diff)
Minor updates
Diffstat (limited to 'src')
-rw-r--r--src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp2
-rw-r--r--src/ESP32-HUB75-MatrixPanel-I2S-DMA.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
index cc68c04..8526b44 100644
--- a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
+++ b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
@@ -24,7 +24,7 @@ bool MatrixPanel_I2S_DMA::allocateDMAmemory()
if (ptr->data == nullptr)
{
- ESP_LOGE(TAG, "ERROR: Couldn't malloc rowBitStruct %d! Not enough memory for requested PIXEL_COLOUR_DEPTH_BITS. Please reduce colour depth. Critical fail.\r\n", malloc_num);
+ ESP_LOGE(TAG, "CRITICAL ERROR: Can't allocate rowBitStruct %d! Not enough memory for requested PIXEL_COLOUR_DEPTH_BITS. Please reduce PIXEL_COLOUR_DEPTH_BITS value.\r\n", malloc_num);
return false;
// TODO: should we release all previous rowBitStructs here???
}
diff --git a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.h b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.h
index bccc12f..0dbfd36 100644
--- a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.h
+++ b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.h
@@ -74,8 +74,6 @@
#define PIXEL_COLOUR_DEPTH_BITS 8
#endif
-#define COLOUR_CHANNELS_PER_PIXEL 3
-
/***************************************************************************************/
/* Definitions below should NOT be ever changed without rewriting library logic */
#define ESP32_I2S_DMA_STORAGE_TYPE uint16_t // DMA output of one uint16_t at a time.