only subscribe to a universe once
This commit is contained in:
parent
b466cf1aaf
commit
fa17de7c26
@ -35,6 +35,11 @@ ESPAsyncE131::ESPAsyncE131() {
|
|||||||
bool ESPAsyncE131::subscribe(uint16_t num, e131_listen_t type) {
|
bool ESPAsyncE131::subscribe(uint16_t num, e131_listen_t type) {
|
||||||
bool success = false;
|
bool success = false;
|
||||||
|
|
||||||
|
if (universes_.count(num)) {
|
||||||
|
// already subscribed
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case E131_UNICAST:
|
case E131_UNICAST:
|
||||||
Serial.println("Unicasting");
|
Serial.println("Unicasting");
|
||||||
|
Loading…
Reference in New Issue
Block a user