diff --git a/main/ledstrip.h b/main/ledstrip.h index 37880ac..29d6278 100644 --- a/main/ledstrip.h +++ b/main/ledstrip.h @@ -38,9 +38,9 @@ void updateLedStrip() auto color = CRGB{255, 255, 0}; const auto center = (std::begin(leds) + (leds.size() / 2) + settings.ledstrip.centerOffset); - if (blinkAnimation != LEDSTRIP_ANIMATION_BLINKRIGHT) - std::fill(center - settings.ledstrip.bigOffset, center - settings.ledstrip.smallOffset, color); if (blinkAnimation != LEDSTRIP_ANIMATION_BLINKLEFT) + std::fill(center - settings.ledstrip.bigOffset, center - settings.ledstrip.smallOffset, color); + if (blinkAnimation != LEDSTRIP_ANIMATION_BLINKRIGHT) std::fill(center + settings.ledstrip.smallOffset, center + settings.ledstrip.bigOffset, color); } } diff --git a/main/ledstripdefines.h b/main/ledstripdefines.h index a8f418f..88be16e 100644 --- a/main/ledstripdefines.h +++ b/main/ledstripdefines.h @@ -3,8 +3,8 @@ * This file contains a few defines, so you don't have to remember which ledstrip animation is which number */ #define LEDSTRIP_ANIMATION_DEFAULTRAINBOW 0 -#define LEDSTRIP_ANIMATION_BLINKLEFT 2 -#define LEDSTRIP_ANIMATION_BLINKRIGHT 1 +#define LEDSTRIP_ANIMATION_BLINKLEFT 1 +#define LEDSTRIP_ANIMATION_BLINKRIGHT 2 #define LEDSTRIP_ANIMATION_BLINKBOTH 3 #define LEDSTRIP_ANIMATION_DEFAULT LEDSTRIP_ANIMATION_DEFAULTRAINBOW