diff options
| author | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2022-10-05 22:04:41 +0100 |
|---|---|---|
| committer | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2022-10-05 22:04:41 +0100 |
| commit | 4772d1d643ae51f0de8f98a3420d7d64b5679125 (patch) | |
| tree | 4a5ac3986e2829a84974ce6aacf2d525752ad46e /src | |
| parent | 69e75cde12f5c851a57390a100dabcfc279bfc47 (diff) | |
Update ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
Diffstat (limited to 'src')
| -rw-r--r-- | src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp index ebce242..816f993 100644 --- a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp +++ b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp @@ -34,6 +34,8 @@ bool MatrixPanel_I2S_DMA::allocateDMAmemory() } // calculate the lowest LSBMSB_TRANSITION_BIT value that will fit in memory that will meet or exceed the configured refresh rate +#if !defined(FORCE_COLOUR_DEPTH) + while(1) { int psPerClock = 1000000000000UL/m_cfg.i2sspeed; int nsPerLatch = ((PIXELS_PER_ROW + CLKS_DURING_LATCH) * psPerClock) / 1000; @@ -59,7 +61,7 @@ bool MatrixPanel_I2S_DMA::allocateDMAmemory() else break; } - +#endif /*** |
