diff options
author | tjahnk <tjahnk@users.noreply.github.com> | 2017-07-27 10:55:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-27 10:55:47 +0200 |
commit | 4d190f69cc90143c4de1b0d474cbf552fa165b78 (patch) | |
tree | f03139fa7dd9a791bb17a897d29e176bd9ee85d8 /ucs2-interface/ucs-xml | |
parent | cccb9d85b0e94a9716e82aa055beb101c4de8781 (diff) | |
parent | b472aba95f7fbbfd61e9b8830dd30a4fe73af86f (diff) |
Merge pull request #14 from tkummermehr/I2C_and_GPIO_Support
Implement handling of GPIO, I2C, Routes
Diffstat (limited to 'ucs2-interface/ucs-xml')
-rw-r--r-- | ucs2-interface/ucs-xml/UcsXml.c | 7 |
1 files changed, 3 insertions, 4 deletions
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);
|