From 71a584fb52eac1a72ac875a3fd96bb2b5eeb56fc Mon Sep 17 00:00:00 2001 From: mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> Date: Sat, 21 Jan 2023 17:21:33 +0000 Subject: [PATCH] Fix compile error on Arduino --- src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp index fb17dab..12ee908 100644 --- a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp +++ b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp @@ -706,7 +706,7 @@ void MatrixPanel_I2S_DMA::brtCtrlOEv2(uint8_t brt, const int _buff_id) { // rightshift: ... 0 0 0 0 0 0 0 1 2 3 4 5 -\ 0 0 0 0 0 0 0 1 2 3 4 5 -\ 0 0 0 0 0 0 0 1 2 3 4 5 -\ .. char bitplane = dma_buff.rowBits[row_idx]->colour_depth-colouridx; char rightshift = std::max(bitplane-2,0); - int brightness_in_x_pixels = PIXELS_PER_ROW * brt >> 8 + rightshift; + int brightness_in_x_pixels = (PIXELS_PER_ROW * brt) >> (8 + rightshift); --colouridx; // switch pointer to a row for a specific color index