]> rtime.felk.cvut.cz Git - arc.git/commitdiff
Corrected call to PduR from CanIf.
authormaek <devnull@localhost>
Thu, 16 Jun 2011 07:46:13 +0000 (09:46 +0200)
committermaek <devnull@localhost>
Thu, 16 Jun 2011 07:46:13 +0000 (09:46 +0200)
communication/CanIf/CanIf.c

index 1d31d9bb0549b1e79aac3dabbd69aaf2c01760b1..23e317e219bf9386488087a0375495745e9434be 100644 (file)
@@ -855,7 +855,12 @@ void CanIf_RxIndication(uint8 Hrh, Can_IdType CanId, uint8 CanDlc,
         case CANIF_USER_TYPE_CAN_PDUR:\r
             // Send Can frame to PDU router\r
 #if defined(USE_PDUR)\r
-            PduR_CanIfRxIndication(entry->CanIfCanRxPduId,CanSduPtr);\r
+               {\r
+                       PduInfoType pduInfo;\r
+                       pduInfo.SduLength = CanDlc;\r
+                       pduInfo.SduDataPtr = (uint8 *)CanSduPtr;\r
+               PduR_CanIfRxIndication(entry->CanIfCanRxPduId,&pduInfo);\r
+               }\r
             return;\r
 #endif\r
             break;\r