DDP working

This commit is contained in:
cschwinne
2020-09-29 01:13:29 +02:00
parent 52df963be9
commit ee8596d175
7 changed files with 12 additions and 8 deletions

View File

@@ -24,8 +24,8 @@ void handleDDPPacket(e131_packet_t* p) {
}
}
uint16_t offsetLeds = p->channelOffset /3;
uint16_t packetLeds = p->dataLen /3;
uint32_t offsetLeds = htonl(p->channelOffset) /3;
uint16_t packetLeds = htons(p->dataLen) /3;
uint8_t* data = p->data;
uint16_t c = 0;
if (p->flags & DDP_TIMECODE_FLAG) c = 4; //packet has timecode flag, we do not support it, but data starts 4 bytes later