From fb727f203e8208bcc052b922258bb1411fdb5e82 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Wed, 22 Feb 2023 00:20:48 +0100 Subject: [PATCH] Fixed protocol error when address is 0 --- dmxcontroller.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dmxcontroller.cpp b/dmxcontroller.cpp index 5e04142..742b547 100644 --- a/dmxcontroller.cpp +++ b/dmxcontroller.cpp @@ -337,6 +337,13 @@ void DmxController::sendDmxBuffer() for (const auto &light : m_lightProject.devices) { + if (!light.address) + { + if (iter != std::cend(sliders)) + iter++; + continue; + } + auto deviceTypePtr = m_lightProject.deviceTypes.findById(light.deviceTypeId); if (!deviceTypePtr) {