We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4a7eff commit 1e42ebfCopy full SHA for 1e42ebf
1 file changed
wled00/e131.cpp
@@ -22,7 +22,8 @@ static void handleDDPPacket(e131_packet_t* p) {
22
int lastPushSeq = e131LastSequenceNumber[0];
23
24
// reject unsupported color data types (only RGB and RGBW are supported)
25
- if (p->dataType != DDP_TYPE_RGB24 && p->dataType != DDP_TYPE_RGBW32) return;
+ uint8_t maskedType = p->dataType & 0x3F; // mask out custom and reserved flags, only type bits are relevant
26
+ if (maskedType != DDP_TYPE_RGB24 && maskedType != DDP_TYPE_RGBW32) return;
27
28
// reject status and config packets (not implemented)
29
if (p->destination == DDP_ID_STATUS || p->destination == DDP_ID_CONFIG) return;
0 commit comments