From 7663b84ec546c3419530b002f09bee6777ee027c Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Sun, 9 Apr 2023 20:07:41 -0400 Subject: [PATCH] discard used bytes without the offset --- platform/qt/dmxwidget/dmxwidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/qt/dmxwidget/dmxwidget.cpp b/platform/qt/dmxwidget/dmxwidget.cpp index b1e35a6..7acdf3c 100644 --- a/platform/qt/dmxwidget/dmxwidget.cpp +++ b/platform/qt/dmxwidget/dmxwidget.cpp @@ -109,7 +109,8 @@ void DmxWidget::parseMessageBuffer() msg->iStream(stream); // ship it routeRxMessage(msg); - fast_forward(length + fixed_length - 1); // discard processed bytes + // discard processed bytes + fast_forward(length + fixed_length); } }