Fixed protocol error when address is 0
This commit is contained in:
@ -337,6 +337,13 @@ void DmxController::sendDmxBuffer()
|
|||||||
|
|
||||||
for (const auto &light : m_lightProject.devices)
|
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);
|
auto deviceTypePtr = m_lightProject.deviceTypes.findById(light.deviceTypeId);
|
||||||
if (!deviceTypePtr)
|
if (!deviceTypePtr)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user