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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user