Small bugfix for Animations.

This commit is contained in:
Fabian Schlenz 2019-05-25 20:29:08 +02:00
parent d39e4975a1
commit 47ac036390

View File

@ -269,8 +269,8 @@ class Animation : public Effect {
frameSince = millis();
}
}
void set(int i, CRGB color) {
setPixel(xOffset + (i % animation->w), yOffset + (i / animation->h), color);
void set(int i, CRGB* color) {
setPixel(xOffset + (i % animation->w), yOffset + (i / animation->h), *color);
}
uint16_t frameDelay(AnimationData* animation, int frame) {
if (animation->individual_delays) return animation->delays[frame];