only subscribe to a universe once

This commit is contained in:
Kevin Matz 2020-12-08 17:23:26 -05:00
parent b466cf1aaf
commit fa17de7c26

View File

@ -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");