Skip to content

Commit

Permalink
Merge pull request #4 from bitcraze/evoggy/fix-cpx-send-size
Browse files Browse the repository at this point in the history
Fix the CPX send size being capped to 1 byte
  • Loading branch information
krichardsson authored May 10, 2022
2 parents aaa91d2 + 4ca5f9d commit 2324319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpx.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void cpxSendPacketBlocking(CPXPacket_t * packet, uint32_t size) {
ASSERT((packet->route.function >> 8) == 0);
ASSERT(size <= MTU - CPX_HEADER_SIZE);*/

txp.length = (uint8_t) size + CPX_HEADER_SIZE;
txp.length = (uint16_t) size + CPX_HEADER_SIZE;
txp.cpxDst = packet->route.destination;
txp.cpxSrc = packet->route.source;
txp.cpxFunc = packet->route.function;
Expand Down

0 comments on commit 2324319

Please sign in to comment.