diff --git a/src/AlaLedRgb.cpp b/src/AlaLedRgb.cpp index aae8563..b909e4c 100644 --- a/src/AlaLedRgb.cpp +++ b/src/AlaLedRgb.cpp @@ -654,27 +654,27 @@ void AlaLedRgb::fire() int rMax = (COOLING / numLeds) + 2; for(int i=0; i=3; k--) { - heat[k] = ((int)heat[k - 1] + (int)heat[k - 2] + (int)heat[k - 3] ) / 3; + heat[k] = ((int)heat[k - 1] + (int)heat[k - 2] + (int)heat[k - 3] ) / 3; } // Step 3. Randomly ignite new 'sparks' of heat near the bottom if(random(255) < SPARKING) { - int y = random(7); - heat[y] = min(heat[y] + random(160, 255), 255); + int y = random(7); + heat[y] = min(heat[y] + random(160, 255), 255); } // Step 4. Map from heat cells to LED colors for(int j=0; j