diff --git a/wled00/udp.cpp b/wled00/udp.cpp index 08ee0b069d..737d6a828d 100644 --- a/wled00/udp.cpp +++ b/wled00/udp.cpp @@ -769,7 +769,9 @@ uint8_t realtimeBroadcast(uint8_t type, IPAddress client, uint16_t length, uint8 switch (type) { case 0: // DDP { - ddpUdp.begin(Network.localIP(), DDP_DEFAULT_PORT); // in case we have Ethernet, this forces that source IP/routing. + #if defined WLED_USE_ETHERNET && !defined ESP8266 + ddpUdp.begin(Network.localIP(),ARTNET_DEFAULT_PORT); // in case we have Ethernet on ESP32, this forces that source IP/routing. + #endif // calculate the number of UDP packets we need to send size_t channelCount = length * (isRGBW? 4:3); // 1 channel for every R,G,B value @@ -839,8 +841,9 @@ uint8_t realtimeBroadcast(uint8_t type, IPAddress client, uint16_t length, uint8 case 2: //ArtNet { - ddpUdp.begin(Network.localIP(),ARTNET_DEFAULT_PORT); // in case we have Ethernet, this forces that source IP/routing. - + #if defined WLED_USE_ETHERNET && !defined ESP8266 + ddpUdp.begin(Network.localIP(),ARTNET_DEFAULT_PORT); // in case we have Ethernet on ESP32, this forces that source IP/routing. + #endif /* We don't really care about the number of universes - just how many hardware outputs we have.