Skip to content

Commit

Permalink
Update some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ewoudwijma committed Jul 26, 2024
1 parent 4be9e80 commit a2e1c58
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/App/LedFixture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ void Fixture::projectAndMap() {
mdl->setValue("fixSize", fixSize);
mdl->setValue("fixCount", nrOfLeds);

//init overlapping (for blending)
//init pixelsToBlend
for (uint16_t i=0; i<nrOfLeds; i++) {
if (pixelsToBlend.size() < nrOfLeds)
pixelsToBlend.push_back(false);
Expand Down
2 changes: 1 addition & 1 deletion src/App/LedFixture.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Fixture {
public:

CRGB ledsP[NUM_LEDS_Max];
std::vector<bool> pixelsToBlend; //create overlapping (for blending) this is a 1-bit vector !!!
std::vector<bool> pixelsToBlend; //this is a 1-bit vector !!! overlapping effects will blend

// CRGB *leds = nullptr;
// if (!leds)
Expand Down
1 change: 1 addition & 0 deletions src/App/LedModEffects.h
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ class LedModEffects:public SysModule {
if (sys->now - frameMillis >= 1000.0/fps) {

//reset pixelsToBlend
// ppf(" %d-%d", fixture.pixelsToBlend.size(), fixture.nrOfLeds);
for (uint16_t i=0; i < fixture.pixelsToBlend.size(); i++)
fixture.pixelsToBlend[i] = false;

Expand Down

0 comments on commit a2e1c58

Please sign in to comment.