A number of changes to try to get to the point where I could use Wokwi for some basic testing of animations

This commit is contained in:
2025-09-14 21:54:17 -04:00
parent 414a5bb749
commit 67ac7aa752
9 changed files with 27 additions and 217 deletions

View File

@@ -10,6 +10,7 @@ class StreamEvent
handled = false;
code = _readFrom->read();
subCode = _readFrom->read();
flags = _readFrom->read();
if (flags & 0x01 == 1) {
@@ -32,6 +33,8 @@ class StreamEvent
uint8_t getCode() { return code; }
uint8_t getSubCode() { return subCode; }
uint16_t getPayloadSize() { return payloadSize; }
byte* getPayload() { return payload; }
@@ -40,7 +43,7 @@ class StreamEvent
bool isResponse() { return flags & 0x02 == 2; }
bool isDescribeRequest() { return flags & 0x04 == 4; }
virtual ~StreamEvent() { delete[] payload; }
~StreamEvent() { delete[] payload; }
private:
byte*
@@ -49,6 +52,7 @@ class StreamEvent
payloadSize;
uint8_t
code,
subCode,
flags;
bool
handled;