1
0
Fork 0

read the full length of remaining data

This commit is contained in:
Kevin Matz 2023-04-16 14:54:01 -04:00
parent 67e84624ee
commit c3bc6dc44e
1 changed files with 2 additions and 1 deletions

View File

@ -139,7 +139,8 @@ void MsgSetWidgetParametersRequest::oStream(std::shared_ptr<bufferstream> stream
void MsgRecievedDmxPacket::iStream(std::shared_ptr<bufferstream> stream)
{
*stream >> rx_errors;
stream->read(data.data(), DMX::E111_LAST_SLOT + 1);
data.resize(stream->available());
stream->read(data.data(), stream->available());
};