Swapped grouping and spacing in UDP packet.

This commit is contained in:
Blaž Kristan 2022-01-07 17:53:07 +01:00
parent 10e216da6b
commit 20ccca0aec

View File

@ -89,8 +89,8 @@ void notify(byte callMode, bool followUp)
for (uint8_t i = 0; i < strip.getMaxSegments(); i++) {
WS2812FX::Segment &selseg = strip.getSegment(i);
udpOut[40+i*3] = selseg.options & 0x0F; //only take into account mirrored, selected, on, reversed
udpOut[41+i*3] = selseg.spacing;
udpOut[42+i*3] = selseg.grouping;
udpOut[41+i*3] = selseg.grouping;
udpOut[42+i*3] = selseg.spacing;
}
IPAddress broadcastIp;