]> rtime.felk.cvut.cz Git - arc.git/commitdiff
WriteDataByIdentifier should return CNC when callback returns E_NOT_OK but has a...
authorjohn <john.bjork@arccore.com>
Tue, 11 Sep 2012 08:43:11 +0000 (10:43 +0200)
committerjohn <john.bjork@arccore.com>
Tue, 11 Sep 2012 08:43:11 +0000 (10:43 +0200)
diagnostic/Dcm/Dcm_Dsp.c

index bb5cbad28675e334b931f1467e07de3a11c0d792..77928f6464641ba0ea8de3ca1a7ea3e47dfa8de0 100644 (file)
@@ -1265,6 +1265,9 @@ 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, &responseCode);   /** @req DCM395 */\r
+                                                       if( result != E_OK && responseCode == DCM_E_POSITIVERESPONSE ) {\r
+                                                               responseCode = DCM_E_CONDITIONSNOTCORRECT;\r
+                                                       }\r
                                                }\r
                                                else {\r
                                                        responseCode = DCM_E_INCORRECTMESSAGELENGTHORINVALIDFORMAT;\r