animation length now is correctly variable
parent
4f376eaa1b
commit
8ad8589cf5
|
|
@ -153,10 +153,12 @@ void setup() {
|
|||
|
||||
|
||||
// PLAY ANIMATION
|
||||
// anim.loadFromFile("/asdf.anim");
|
||||
// currentAnimation = &anim;
|
||||
// currentAnimation->setActive(true);
|
||||
// playMode = PLAY_ONCE;
|
||||
anim.loadFromFile("/aa.anim");
|
||||
currentAnimation = &anim;
|
||||
currentAnimation->setActive(true);
|
||||
playMode = PLAY_ONCE;
|
||||
//Serial.println(anim.header.frameCount);
|
||||
//Serial.println(anim.printCurves());
|
||||
}
|
||||
|
||||
void SetID(uint8_t oldID, uint8_t newID) {
|
||||
|
|
@ -681,7 +683,7 @@ bool parseAnimationPayload(const uint8_t* payload, uint16_t length, Animation& a
|
|||
}
|
||||
|
||||
animation.header.frameCount = ptr[5] << 8 | ptr[4]; // little-endian ✅
|
||||
|
||||
sendMessage(String(animation.header.frameCount));
|
||||
animation.header.version = ptr[6];
|
||||
animation.header.frameRate = ptr[7];
|
||||
memcpy(animation.header.reserved, ptr + 8, 8);
|
||||
|
|
|
|||
Loading…
Reference in New Issue