Skip to content

Commit

Permalink
DMX Input - reinstate loggers for connection state change
Browse files Browse the repository at this point in the history
  • Loading branch information
netmindz committed Aug 10, 2024
1 parent 2934739 commit e90f8e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wled00/dmx_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -199,6 +202,9 @@ void DMXInput::updateInternal()
}
}
else {
if(connected) {
USER_PRINTLN("DMX Input - disconnected");
}
connected = false;
}
}
Expand Down

0 comments on commit e90f8e7

Please sign in to comment.