From c3bc6dc44ee06ebdd37f53f286acffae048bc5ac Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Sun, 16 Apr 2023 14:54:01 -0400 Subject: [PATCH] read the full length of remaining data --- protocol/enttec/dmx-usb-pro/pro.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocol/enttec/dmx-usb-pro/pro.cpp b/protocol/enttec/dmx-usb-pro/pro.cpp index 2cf7ac5..3e60155 100644 --- a/protocol/enttec/dmx-usb-pro/pro.cpp +++ b/protocol/enttec/dmx-usb-pro/pro.cpp @@ -139,7 +139,8 @@ void MsgSetWidgetParametersRequest::oStream(std::shared_ptr stream void MsgRecievedDmxPacket::iStream(std::shared_ptr stream) { *stream >> rx_errors; - stream->read(data.data(), DMX::E111_LAST_SLOT + 1); + data.resize(stream->available()); + stream->read(data.data(), stream->available()); };