From c8263f404f2ee488d628159cee2e26cae855b018 Mon Sep 17 00:00:00 2001 From: maek Date: Thu, 16 Jun 2011 09:46:13 +0200 Subject: [PATCH] Corrected call to PduR from CanIf. --- communication/CanIf/CanIf.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/communication/CanIf/CanIf.c b/communication/CanIf/CanIf.c index 1d31d9bb..23e317e2 100644 --- a/communication/CanIf/CanIf.c +++ b/communication/CanIf/CanIf.c @@ -855,7 +855,12 @@ void CanIf_RxIndication(uint8 Hrh, Can_IdType CanId, uint8 CanDlc, case CANIF_USER_TYPE_CAN_PDUR: // Send Can frame to PDU router #if defined(USE_PDUR) - PduR_CanIfRxIndication(entry->CanIfCanRxPduId,CanSduPtr); + { + PduInfoType pduInfo; + pduInfo.SduLength = CanDlc; + pduInfo.SduDataPtr = (uint8 *)CanSduPtr; + PduR_CanIfRxIndication(entry->CanIfCanRxPduId,&pduInfo); + } return; #endif break; -- 2.39.2