DMX Input - reinstate loggers for connection state change

This commit is contained in:
Will Tatam 2024-07-30 19:15:08 +01:00 committed by Will Tatam
parent fc4e7a2dee
commit 9a6e91d3e5

View File

@ -186,6 +186,9 @@ void DMXInput::updateInternal()
unsigned long now = millis();
if (dmx_receive(inputPortNum, &packet, DMX_TIMEOUT_TICK)) {
if (!packet.err) {
if(!connected) {
USER_PRINTLN("DMX Input - connected");
}
connected = true;
identify = isIdentifyOn();
if (!packet.is_rdm) {
@ -198,6 +201,9 @@ void DMXInput::updateInternal()
}
}
else {
if(connected) {
USER_PRINTLN("DMX Input - disconnected");
}
connected = false;
}
}