From 41e5901805a334f1c0b66e1a43e6bfa0794399a4 Mon Sep 17 00:00:00 2001 From: mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> Date: Mon, 3 Jan 2022 14:32:13 +0000 Subject: [PATCH] Update ESP32-HUB75-MatrixPanel-I2S-DMA.cpp --- ESP32-HUB75-MatrixPanel-I2S-DMA.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp b/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp index a9fae2f..21bf002 100644 --- a/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp +++ b/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp @@ -768,9 +768,10 @@ void MatrixPanel_I2S_DMA::brtCtrlOE(int brt, const bool _buff_id){ if(coloridx && coloridx <= lsbMsbTransitionBit) { // divide brightness in half for each bit below lsbMsbTransitionBit int lsbBrightness = brt >> (lsbMsbTransitionBit - coloridx + 1); - if((x_coord) >= lsbBrightness) + if((x_coord) >= lsbBrightness) { row[x_coord] |= BIT_OE; // Disable output after this point. continue; + } } // clear OE bit for all other pixels @@ -1029,4 +1030,4 @@ void MatrixPanel_I2S_DMA::fillRectDMA(int16_t x, int16_t y, int16_t w, int16_t h } } -#endif // NO_FAST_FUNCTIONS \ No newline at end of file +#endif // NO_FAST_FUNCTIONS