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 36241e8 commit 6999737Copy full SHA for 6999737
1 file changed
wled00/e131.cpp
@@ -16,9 +16,10 @@ void handleDDPPacket(e131_packet_t* p) {
16
[[maybe_unused]] int lastPushSeq = e131LastSequenceNumber[0];
17
18
// reject unsupported color data types (only RGB and RGBW are supported)
19
+ uint8_t maskedType = p->dataType & 0x3F; // mask out custom and reserved flags, only type bits are relevant
20
// WLEDMM allow legacy "undefined" datatype, and legacy (but wrong) datatype=0x01
- if ( p->dataType != 0 && p->dataType != 0x01 &&
21
- p->dataType != DDP_TYPE_RGB24 && p->dataType != DDP_TYPE_RGBW32) {
+ if ( maskedType != 0 && maskedType != 0x01 &&
22
+ maskedType != DDP_TYPE_RGB24 && maskedType != DDP_TYPE_RGBW32) {
23
DEBUG_PRINTF("handleDDPPacket(); unsupported datatype 0x%02x\n", p->dataType);
24
return;
25
}
0 commit comments