DMX Input - reinstate loggers for connection state change

This commit is contained in:
Will Tatam
2024-07-30 19:15:08 +01:00
parent 2934739ebf
commit e90f8e7f0d

View File

@@ -187,6 +187,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) {
@@ -199,6 +202,9 @@ void DMXInput::updateInternal()
}
}
else {
if(connected) {
USER_PRINTLN("DMX Input - disconnected");
}
connected = false;
}
}