Skip to content

Commit

Permalink
Merge pull request brimshot#10 from brimshot/fix-layer-persistence
Browse files Browse the repository at this point in the history
fix layer persistence
  • Loading branch information
brimshot authored Jul 22, 2020
2 parents 824fc1c + 845b209 commit a817f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qpLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void qpLayer::draw(CRGB *targetLeds, int numLeds) {
fadeToBlackBy(this->leds, this->numLeds, this->continualFadeAmount);

while(qpPattern *currentPattern = this->patterns.fetch())
patternsRendered &= currentPattern->render();
patternsRendered |= currentPattern->render();

if(patternsRendered || this->bPersistWhenPatternsInactive)
(this->*applyToLeds)(targetLeds, numLeds);
Expand Down

0 comments on commit a817f10

Please sign in to comment.