Skip to content

Commit

Permalink
Merge pull request #388 from robertlipe/sportsball
Browse files Browse the repository at this point in the history
Eliminate duplicated test in PatternSpiro
  • Loading branch information
rbergen authored Jul 30, 2023
2 parents 0575ceb + e1f3257 commit ff1e7a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/effects/matrix/PatternSpiro.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class PatternSpiro : public LEDStripEffect
CRGB color = graphics->ColorFromCurrentPalette(hueoffset + i * spirooffset, 128);
graphics->leds[graphics->xy(x2, y2)] += color;

if ((x2 == MATRIX_CENTER_X && y2 == MATRIX_CENTER_Y) || (x2 == MATRIX_CENTER_X && y2 == MATRIX_CENTER_Y))
if (x2 == MATRIX_CENTER_X && y2 == MATRIX_CENTER_Y)
change = true;
}

Expand Down

0 comments on commit ff1e7a3

Please sign in to comment.