Skip to content

Commit 2324319

Browse files
authored
Merge pull request #4 from bitcraze/evoggy/fix-cpx-send-size
Fix the CPX send size being capped to 1 byte
2 parents aaa91d2 + 4ca5f9d commit 2324319

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void cpxSendPacketBlocking(CPXPacket_t * packet, uint32_t size) {
8080
ASSERT((packet->route.function >> 8) == 0);
8181
ASSERT(size <= MTU - CPX_HEADER_SIZE);*/
8282

83-
txp.length = (uint8_t) size + CPX_HEADER_SIZE;
83+
txp.length = (uint16_t) size + CPX_HEADER_SIZE;
8484
txp.cpxDst = packet->route.destination;
8585
txp.cpxSrc = packet->route.source;
8686
txp.cpxFunc = packet->route.function;

0 commit comments

Comments
 (0)