Skip to content

Commit

Permalink
Merge pull request #109 from hideakitai/fix/send-art-poll-even-if-no-…
Browse files Browse the repository at this point in the history
…subscribed-universe

Fix/send art poll even if no subscribed universe
  • Loading branch information
hideakitai authored Jun 19, 2024
2 parents 2767231 + 0641f9f commit 67ccf7e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Artnet/Receiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -328,14 +328,16 @@ class Receiver_
this->macAddress(my_mac);

arx::stdx::map<uint16_t, bool> universes;

for (const auto &cb_pair : this->callback_art_dmx_universes) {
universes[cb_pair.first] = true;
}

for (const auto &cb_pair : this->callback_art_nzs_universes) {
universes[cb_pair.first] = true;
}
// if no universe is subscribed, send reply for universe 0
if (universes.empty()) {
universes[0] = true;
}

for (const auto &u_pair : universes) {
art_poll_reply::Packet reply = art_poll_reply::generatePacketFrom(my_ip, my_mac, u_pair.first, this->art_poll_reply_config);
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"url": "https://github.com/hideakitai",
"maintainer": true
},
"version": "0.5.0",
"version": "0.6.0",
"license": "MIT",
"frameworks": "*",
"platforms": "*",
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ArtNet
version=0.5.0
version=0.6.0
author=hideakitai
maintainer=hideakitai
sentence=Art-Net Sender/Receiver for Arduino (Ethernet, WiFi)
Expand Down

0 comments on commit 67ccf7e

Please sign in to comment.