diff --git a/platform/qt/dmxwidget/dmxwidget.cpp b/platform/qt/dmxwidget/dmxwidget.cpp index e8b0f4a..5a27fd9 100644 --- a/platform/qt/dmxwidget/dmxwidget.cpp +++ b/platform/qt/dmxwidget/dmxwidget.cpp @@ -152,8 +152,7 @@ void DmxWidget::sendMessage(std::shared_ptr msg) const *stream << ENTTEC::Pro::START_DELIMITER; *stream << msg->label; *stream << length; - if (length) - *stream << msg; + msg->oStream(stream); *stream << ENTTEC::Pro::END_DELIMITER; port_->write(buffer, sizeof(buffer));