Skip to content

Commit e088f46

Browse files
committed
removed unnecessary changes
1 parent b363b61 commit e088f46

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

wled00/colors.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,9 @@ uint32_t color_fade(uint32_t c1, uint8_t amount, bool video)
8686
// 1:1 replacement of fastled function optimized for ESP, slightly faster, more accurate and uses less flash (~ -200bytes)
8787
uint32_t ColorFromPaletteWLED(const CRGBPalette16& pal, unsigned index, uint8_t brightness, TBlendType blendType)
8888
{
89-
9089
if (blendType == LINEARBLEND_NOWRAP) {
9190
index = (index * 0xF0) >> 8; // Blend range is affected by lo4 blend of values, remap to avoid wrapping
9291
}
93-
uint32_t clr32;
9492
unsigned hi4 = byte(index) >> 4;
9593
unsigned lo4 = (index & 0x0F);
9694
const CRGB* entry = (CRGB*)&(pal[0]) + hi4;

0 commit comments

Comments
 (0)