Skip to content

Commit

Permalink
Fixed multicast init issue
Browse files Browse the repository at this point in the history
  • Loading branch information
forkineye committed Aug 3, 2017
1 parent a65294b commit 3bcbcfa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ESPixelStick.ino
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,6 @@ void setup() {
// Configure and start the web server
initWeb();

// Setup E1.31
if (config.multicast)
e131.begin(E131_MULTICAST, config.universe,
uniLast - config.universe + 1);
else
e131.begin(E131_UNICAST);

// Configure the outputs
#if defined (ESPS_MODE_PIXEL)
pixels.setPin(DATA_PIN);
Expand All @@ -189,6 +182,13 @@ void setup() {
#else
updateConfig();
#endif

// Setup E1.31
if (config.multicast)
e131.begin(E131_MULTICAST, config.universe,
uniLast - config.universe + 1);
else
e131.begin(E131_UNICAST);
}

/////////////////////////////////////////////////////////
Expand Down

0 comments on commit 3bcbcfa

Please sign in to comment.