From b472aba95f7fbbfd61e9b8830dd30a4fe73af86f Mon Sep 17 00:00:00 2001 From: Thorsten Kummermehr Date: Wed, 26 Jul 2017 16:54:13 +0200 Subject: Implement handling of GPIO, I2C, Routes --- ucs2-interface/ucs-xml/UcsXml.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ucs2-interface/ucs-xml') diff --git a/ucs2-interface/ucs-xml/UcsXml.c b/ucs2-interface/ucs-xml/UcsXml.c index efce887..8837356 100644 --- a/ucs2-interface/ucs-xml/UcsXml.c +++ b/ucs2-interface/ucs-xml/UcsXml.c @@ -1158,12 +1158,11 @@ static ParseResult_t ParseScriptMsgSend(mxml_node_t *act, Ucs_Ns_Script_t *scr, if (!GetUInt8(act, OP_TYPE_REQUEST, &req->OpCode, true)) RETURN_ASSERT(Parse_XmlError); - if (!GetUInt8(act, OP_TYPE_RESPONSE, &res->OpCode, true)) - RETURN_ASSERT(Parse_XmlError); - res->FBlockId = req->FBlockId; res->FunktId = req->FunktId; - GetPayload(act, PAYLOAD_RES_HEX, &res->DataPtr, &res->DataLen, 0, &priv->objList, false); + + if (GetUInt8(act, OP_TYPE_RESPONSE, &res->OpCode, false)) + GetPayload(act, PAYLOAD_RES_HEX, &res->DataPtr, &res->DataLen, 0, &priv->objList, false); if (!GetPayload(act, PAYLOAD_REQ_HEX, &req->DataPtr, &req->DataLen, 0, &priv->objList, true)) RETURN_ASSERT(Parse_XmlError); -- cgit 1.2.3-korg