Skip to content

Commit

Permalink
Merge pull request Aircoookie#3892 from askask/pollreply
Browse files Browse the repository at this point in the history
  • Loading branch information
blazoncek authored Apr 28, 2024
2 parents 1048bf9 + c3787af commit 8110259
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 8110259

Please sign in to comment.