Removed wrong length

This commit is contained in:
mxklb 2023-11-17 14:26:11 +01:00
parent a740d71c82
commit bdd667d02d

View File

@ -153,7 +153,7 @@ void handleE131Packet(e131_packet_t* p, IPAddress clientIP, byte protocol){
if (availDMXLen < dmxChannelCount) return; if (availDMXLen < dmxChannelCount) return;
wChannel = dmxChannelCount == 4 ? e131_data[dataOffset+3] : 0; wChannel = dmxChannelCount == 4 ? e131_data[dataOffset+3] : 0;
for (uint16_t i = 0; i < useMainSegmentOnly ? strip.getMainSegment().length() : totalLen; i++) for (uint16_t i = 0; i < totalLen; i++)
setRealtimePixel(i, e131_data[dataOffset+0], e131_data[dataOffset+1], e131_data[dataOffset+2], wChannel); setRealtimePixel(i, e131_data[dataOffset+0], e131_data[dataOffset+1], e131_data[dataOffset+2], wChannel);
break; break;