]> rtime.felk.cvut.cz Git - arc.git/commitdiff
Passing back NRC from writeData-callback.
authorjohn <devnull@localhost>
Mon, 27 Aug 2012 14:42:11 +0000 (16:42 +0200)
committerjohn <devnull@localhost>
Mon, 27 Aug 2012 14:42:11 +0000 (16:42 +0200)
diagnostic/Dcm/Dcm_Dsp.c

index f3eb4271cf9c07ea882979cfe7bdf078e99dc7ff..6c8627c7f69c7fef2db4d27803f97e9764e4ff59 100644 (file)
@@ -1178,7 +1178,7 @@ static Dcm_NegativeResponseCodeType writeDidData(const Dcm_DspDidType *didPtr, c
                                        if (result == E_OK) {\r
                                                if (didLen == writeDidLen) {    /** @req DCM473 */\r
                                                        result = didPtr->DspDidWriteDataFnc(&pduRxData->SduDataPtr[3], (uint8)didLen, &errorCode);      /** @req DCM395 */\r
-                                                       if ((result != E_OK) || (errorCode != DCM_E_POSITIVERESPONSE)) {\r
+                                                       if ((result != E_OK) && (errorCode == DCM_E_POSITIVERESPONSE)) {\r
                                                                responseCode = DCM_E_CONDITIONSNOTCORRECT;\r
                                                        }\r
                                                }\r