From 6abfc5d71b35a9bfef056da624b6c8fac9f5ebe3 Mon Sep 17 00:00:00 2001 From: Bruno Date: Sun, 18 Feb 2018 13:11:02 +0100 Subject: [PATCH] Fixed indentation --- src/AlaLedRgb.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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