Skip to content

Commit

Permalink
Send ArtnetPollReply for Art-Net proxy universe
Browse files Browse the repository at this point in the history
  • Loading branch information
askask committed Apr 9, 2024
1 parent ba9ce4a commit c3787af
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions wled00/e131.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ void handleArtnetPollReply(IPAddress ipAddress) {

switch (DMXMode) {
case DMX_MODE_DISABLED:
return; // nothing to do
break;

case DMX_MODE_SINGLE_RGB:
Expand Down Expand Up @@ -391,9 +390,17 @@ void handleArtnetPollReply(IPAddress ipAddress) {
break;
}

for (uint16_t i = startUniverse; i <= endUniverse; ++i) {
sendArtnetPollReply(&artnetPollReply, ipAddress, i);
if (DMXMode != DMX_MODE_DISABLED) {
for (uint16_t i = startUniverse; i <= endUniverse; ++i) {
sendArtnetPollReply(&artnetPollReply, ipAddress, i);
}
}

#ifdef WLED_ENABLE_DMX
if (e131ProxyUniverse > 0 && (DMXMode == DMX_MODE_DISABLED || (e131ProxyUniverse < startUniverse || e131ProxyUniverse > endUniverse))) {
sendArtnetPollReply(&artnetPollReply, ipAddress, e131ProxyUniverse);
}
#endif
}

void prepareArtnetPollReply(ArtPollReply *reply) {
Expand Down

0 comments on commit c3787af

Please sign in to comment.