Skip to content

Commit

Permalink
Fix XcpTl_RxHandler()
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph2 committed May 24, 2021
1 parent 1878a4d commit 5f4fa8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/tl/eth/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ void XcpTl_RxHandler(void)
} else if (res == 0) {
return;
}
Xcp_CtoIn.len = dlc;
res = XcpTl_ReadData(&XcpTl_RxBuffer[0], dlc);
if (res == -1) {
#if defined(_WIN32)
Expand Down
5 changes: 4 additions & 1 deletion src/xcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,10 @@ void Xcp_DispatchCommand(Xcp_PduType const * const pdu)
{
const uint8_t cmd = pdu->data[0];
DBG_TRACE1("<- ");

#if 0
printf("[%02u] ", pdu->len);
XcpUtl_Hexdump(pdu->data, pdu->len);
#endif
if (Xcp_State.connected == (bool)XCP_TRUE) {
/*DBG_PRINT2("CMD: [%02X]\n\r", cmd); */

Expand Down

0 comments on commit 5f4fa8e

Please sign in to comment.