Skip to content

Commit

Permalink
libraries: net: can: Fixed length computation in tpl_can_fill_pdu_inf…
Browse files Browse the repository at this point in the history
…o().

Signed-off-by: Adrien Ricciardi <[email protected]>
  • Loading branch information
RICCIARDI-Adrien committed Nov 13, 2023
1 parent 20a282f commit 75a34d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/net/can/tpl_can_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,5 +200,5 @@ void tpl_can_fill_pdu_info(Can_PduType *can_pdu, PduInfoType *pdu_info, Can_IdTy
can_pdu->length = (uint8) payload_length;

pdu_info->SduDataPtr = (uint8 *) can_pdu;
pdu_info->SduLength = sizeof(can_pdu) + payload_length;
pdu_info->SduLength = sizeof(Can_PduType) + payload_length;
}

0 comments on commit 75a34d1

Please sign in to comment.