Fixed bug: Last segment in universe skipped

This commit is contained in:
mxklb 2022-12-09 02:10:39 +01:00
parent bd721c1310
commit f38747aa28

View File

@ -190,7 +190,7 @@ void handleE131Packet(e131_packet_t* p, IPAddress clientIP, byte protocol){
if (protocol == P_ARTNET && dataOffset > 0)
dataOffset--;
// Skip out of universe addresses
if (dataOffset > dmxChannels - dmxEffectChannels)
if (dataOffset > dmxChannels - dmxEffectChannels + 1)
return;
if (e131_data[dataOffset+1] < strip.getModeCount())