Small bugfix for Animations.
This commit is contained in:
parent
d39e4975a1
commit
47ac036390
@ -269,8 +269,8 @@ class Animation : public Effect {
|
|||||||
frameSince = millis();
|
frameSince = millis();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void set(int i, CRGB color) {
|
void set(int i, CRGB* color) {
|
||||||
setPixel(xOffset + (i % animation->w), yOffset + (i / animation->h), color);
|
setPixel(xOffset + (i % animation->w), yOffset + (i / animation->h), *color);
|
||||||
}
|
}
|
||||||
uint16_t frameDelay(AnimationData* animation, int frame) {
|
uint16_t frameDelay(AnimationData* animation, int frame) {
|
||||||
if (animation->individual_delays) return animation->delays[frame];
|
if (animation->individual_delays) return animation->delays[frame];
|
||||||
|
Loading…
Reference in New Issue
Block a user