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