]> rtime.felk.cvut.cz Git - arc.git/commitdiff
Minor fix in CanTp.c.
authoreija <devnull@localhost>
Tue, 21 Dec 2010 12:35:20 +0000 (13:35 +0100)
committereija <devnull@localhost>
Tue, 21 Dec 2010 12:35:20 +0000 (13:35 +0100)
communication/CanTp/CanTp.c

index e04ee2b850aab7bef527260d39b0d4d09977ebaf..c5d3a8b6dcee218cffb5822dafe97432e59e276d 100644 (file)
@@ -1120,7 +1120,7 @@ Std_ReturnType CanTp_Transmit(PduIdType CanTpTxSduId,
                        SERVICE_ID_CANTP_TRANSMIT, CANTP_E_UNINIT ); /** @req CANTP031 */\r
        VALIDATE( CanTpTxSduId < CANTP_NSDU_CONFIG_LIST_SIZE, SERVICE_ID_CANTP_TRANSMIT, CANTP_E_INVALID_TX_ID );\r
 \r
-       txConfig = (CanTp_TxNSduType*)&CanTpConfig.CanTpNSduList[CanTpTxSduId].configData;\r
+       txConfig =&CanTpConfig.CanTpNSduList[CanTpTxSduId].configData.CanTpTxNSdu;\r
 \r
        txRuntime = &CanTpRunTimeData.runtimeDataList[txConfig->CanTpTxChannel]; // Runtime data.\r
        if (txRuntime->iso15765.state == IDLE) {\r