aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbeta-tester <alpha-beta-release@gmx.net>2023-08-09 07:43:36 +0200
committerGitHub <noreply@github.com>2023-08-09 07:43:36 +0200
commit9b4926978e223b3d02dc93370a9e36d23669fc55 (patch)
treee5da5fe7a3672d13dd192946b7b0353dc77e270f /src
parent3fc222ff75d1c48d115421aa1a212de3479d500a (diff)
removed another unnecessary instruction
Diffstat (limited to 'src')
-rw-r--r--src/ESP32-HUB75-MatrixPanel-I2S-DMA.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.h b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.h
index a598c43..4a6e843 100644
--- a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.h
+++ b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.h
@@ -882,7 +882,7 @@ inline void MatrixPanel_I2S_DMA::color565to888(const uint16_t color, uint8_t &r,
{
r = (color >> 8) & 0xf8;
g = (color >> 3) & 0xfc;
- b = (color << 3) & 0xf8;
+ b = (color << 3);
r |= r >> 5;
g |= g >> 6;
b |= b >> 5;