From f5236f84fc6391e4b93b915f175cf9f23448bbb7 Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Wed, 15 May 2019 11:32:36 +0200 Subject: [PATCH] - IEC 61850 client: convert MMS error for outstanding call limit to IedClientError --- src/iec61850/client/ied_connection.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/iec61850/client/ied_connection.c b/src/iec61850/client/ied_connection.c index 30f1ea93..ac973639 100644 --- a/src/iec61850/client/ied_connection.c +++ b/src/iec61850/client/ied_connection.c @@ -99,6 +99,9 @@ iedConnection_mapMmsErrorToIedError(MmsError mmsError) case MMS_ERROR_PARSING_RESPONSE: return IED_ERROR_MALFORMED_MESSAGE; + case MMS_ERROR_OUTSTANDING_CALL_LIMIT: + return IED_ERROR_OUTSTANDING_CALL_LIMIT_REACHED; + default: return IED_ERROR_UNKNOWN; } @@ -1121,8 +1124,9 @@ IedConnection_readObjectAsync(IedConnection self, IedClientError* error, const c if ((err != MMS_ERROR_NONE) || (*error != IED_ERROR_OK)) { - if (err != MMS_ERROR_NONE) + if (err != MMS_ERROR_NONE) { *error = iedConnection_mapMmsErrorToIedError(err); + } iedConnection_releaseOutstandingCall(self, call);