aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2023-01-21 17:21:33 +0000
committermrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2023-01-21 17:21:33 +0000
commit71a584fb52eac1a72ac875a3fd96bb2b5eeb56fc (patch)
tree4aacef4489ff05201e9c44916110bcf8ffd40ae3 /src
parent9eacd9a656c565e0fd92a926e58501e5843118d0 (diff)
Fix compile error on Arduino
Diffstat (limited to 'src')
-rw-r--r--src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp2
1 files changed, 1 insertions, 1 deletions
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