Skip to content
Snippets Groups Projects
Verified Commit 6a5ae34e authored by rahix's avatar rahix
Browse files

fix(stream): Don't block when reading


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent 06fa0fc4
No related branches found
No related tags found
1 merge request!21Sensor streams
......@@ -67,7 +67,7 @@ int epic_stream_read(int sd, void *buf, size_t count)
size_t i;
for (i = 0; i < count; i += stream->item_size) {
if (!xQueueReceive(stream->queue, buf + i, STREAM_QUEUE_WAIT)) {
if (!xQueueReceive(stream->queue, buf + i, 0)) {
break;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment