keep dmx rdm identify on if dmx disconnects.

Some rdm testers disconnect after setting it.
This commit is contained in:
Arne 2023-08-22 22:24:31 +02:00 committed by Will Tatam
parent b178c08271
commit 2cc5a29b86

View File

@ -165,12 +165,6 @@ void DMXInput::update()
USER_PRINTLN("DMX is connected!");
connected = true;
}
if (isIdentifyOn())
{
DEBUG_PRINTLN("RDM Identify active");
turnOnAllLeds();
}
else if (!packet.is_rdm)
{
dmx_read(inputPortNum, dmxdata, packet.size);
@ -192,6 +186,12 @@ void DMXInput::update()
connected = false;
USER_PRINTLN("DMX was disconnected.");
}
if (isIdentifyOn())
{
DEBUG_PRINTLN("RDM Identify active");
turnOnAllLeds();
}
}
void DMXInput::turnOnAllLeds()