mirror of
https://github.com/wled/WLED.git
synced 2025-07-22 02:06:32 +00:00
DMX Input - reinstate loggers for connection state change
This commit is contained in:
parent
fc4e7a2dee
commit
9a6e91d3e5
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user