From e088f4654ab6cdf8c0ed8c82bb072bda6c7e377c Mon Sep 17 00:00:00 2001 From: Damian Schneider Date: Tue, 28 Jan 2025 11:30:07 +0100 Subject: [PATCH] removed unnecessary changes --- wled00/colors.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/wled00/colors.cpp b/wled00/colors.cpp index ae60caca8..500687b2e 100644 --- a/wled00/colors.cpp +++ b/wled00/colors.cpp @@ -86,11 +86,9 @@ uint32_t color_fade(uint32_t c1, uint8_t amount, bool video) // 1:1 replacement of fastled function optimized for ESP, slightly faster, more accurate and uses less flash (~ -200bytes) uint32_t ColorFromPaletteWLED(const CRGBPalette16& pal, unsigned index, uint8_t brightness, TBlendType blendType) { - if (blendType == LINEARBLEND_NOWRAP) { index = (index * 0xF0) >> 8; // Blend range is affected by lo4 blend of values, remap to avoid wrapping } - uint32_t clr32; unsigned hi4 = byte(index) >> 4; unsigned lo4 = (index & 0x0F); const CRGB* entry = (CRGB*)&(pal[0]) + hi4;