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 success = false;
|
||||
|
||||
if (universes_.count(num)) {
|
||||
// already subscribed
|
||||
return true;
|
||||
}
|
||||
|
||||
switch (type) {
|
||||
case E131_UNICAST:
|
||||
Serial.println("Unicasting");
|
||||
|
Loading…
Reference in New Issue
Block a user