mirror of
https://github.com/wled/WLED.git
synced 2025-07-23 10:46:33 +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();
|
unsigned long now = millis();
|
||||||
if (dmx_receive(inputPortNum, &packet, DMX_TIMEOUT_TICK)) {
|
if (dmx_receive(inputPortNum, &packet, DMX_TIMEOUT_TICK)) {
|
||||||
if (!packet.err) {
|
if (!packet.err) {
|
||||||
|
if(!connected) {
|
||||||
|
USER_PRINTLN("DMX Input - connected");
|
||||||
|
}
|
||||||
connected = true;
|
connected = true;
|
||||||
identify = isIdentifyOn();
|
identify = isIdentifyOn();
|
||||||
if (!packet.is_rdm) {
|
if (!packet.is_rdm) {
|
||||||
@ -198,6 +201,9 @@ void DMXInput::updateInternal()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if(connected) {
|
||||||
|
USER_PRINTLN("DMX Input - disconnected");
|
||||||
|
}
|
||||||
connected = false;
|
connected = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user