Skip to content

Commit

Permalink
Merge pull request #657 from joro75/orgin-main
Browse files Browse the repository at this point in the history
Fix previously active pixels when switching to frost effect
  • Loading branch information
Blueforcer authored Jan 4, 2025
2 parents 1784b1b + e78f397 commit f6653f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/effects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1291,10 +1291,13 @@ void EffectOverlay(FastLED_NeoMatrix *matrix, int16_t x, int16_t y, OverlayEffec
// Turn off the pixel after MAX_COLOR_CHANGES changes
if (colorChanges[i][j] > 6)
{
leds[i][j] = CRGB::Black;
colorChanges[i][j] = 0; // Reset the counter for this pixel
}
}
if (colorChanges[i][j] == 0)
{
leds[i][j] = CRGB::Black;
}
}
}

Expand Down

0 comments on commit f6653f6

Please sign in to comment.