From fa17de7c26ab631119c156daa6640610b7422bec Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Tue, 8 Dec 2020 17:23:26 -0500 Subject: [PATCH] only subscribe to a universe once --- wiflash_esp32/sacn.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wiflash_esp32/sacn.cpp b/wiflash_esp32/sacn.cpp index cc40b9b..8b2f072 100644 --- a/wiflash_esp32/sacn.cpp +++ b/wiflash_esp32/sacn.cpp @@ -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");