mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-01 02:28:28 +02:00
Fix color wipe effect (#599)
This commit is contained in:
@@ -113,7 +113,7 @@ class AddressableColorWipeEffect : public AddressableLightEffect {
|
||||
it.shift_right(1);
|
||||
const AddressableColorWipeEffectColor color = this->colors_[this->at_color_];
|
||||
const ESPColor esp_color = ESPColor(color.r, color.g, color.b, color.w);
|
||||
if (!this->reverse_)
|
||||
if (this->reverse_)
|
||||
it[-1] = esp_color;
|
||||
else
|
||||
it[0] = esp_color;
|
||||
|
||||
Reference in New Issue
Block a user