You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//TODO: if there are multiple packets (like for a GIF), get all packets and split them into 210 byte pieces. currently only the first packet gets split, which breaks bigger GIFs
130
-
//TODO: only split into 210 byte pieces, if it can be parsed as a frame. otherwise pass it through unchanged to make single images work
131
131
132
-
data_packet_t dataPacket;
133
-
if (xQueueReceive(parsePacketQueue, &dataPacket, (TickType_t)10) == pdPASS) {
134
-
size_t off = 0;
135
-
size_t max = 210;
136
-
size_t len = dataPacket.size;
137
-
uint8_t *buffer = dataPacket.data;
138
-
139
-
while (len > 0) {
140
-
size_t use = len > max ? max : len;
141
-
TcpInput::parse(buffer, use);
142
-
143
-
off += use;
144
-
buffer += use;
145
-
len = dataPacket.size - off;
132
+
while (true) {
133
+
data_packet_t dataPacket;
134
+
if (xQueueReceive(parsePacketQueue, &dataPacket, (TickType_t)10) == pdPASS) {
0 commit comments