Skip to content

Commit

Permalink
Fix code without DMX output support
Browse files Browse the repository at this point in the history
  • Loading branch information
askask committed Apr 4, 2024
1 parent dbb27ea commit 71418f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wled00/e131.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ void handleE131Packet(e131_packet_t* p, IPAddress clientIP, byte protocol){
return;
}

#ifdef WLED_ENABLE_DMX
// DMX data in Art-Net packet starts at index 0, for E1.31 at index 1
uint8_t artnetOffset = (protocol == P_ARTNET) ? -1 : 0;

#ifdef WLED_ENABLE_DMX
// does not act on out-of-order packets yet
if (e131ProxyUniverse > 0 && uni == e131ProxyUniverse) {
for (uint16_t i = 1+artnetOffset; i <= dmxChannels+artnetOffset; i++)
Expand Down

0 comments on commit 71418f6

Please sign in to comment.