Skip to content

Commit

Permalink
Force routing only on non-ESP8266
Browse files Browse the repository at this point in the history
  • Loading branch information
troyhacks committed Apr 15, 2024
1 parent 3f574a9 commit f5b97f2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions wled00/udp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit f5b97f2

Please sign in to comment.