Skip to content

Commit

Permalink
Fix ecx_pushindex, remove DCtO and DCl from ecx_context
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurKetels committed Nov 13, 2019
1 parent 9ec8635 commit 92ff466
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 2 additions & 4 deletions soem/ethercatmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ ecx_contextt ecx_context = {
&ec_elist, // .elist =
&ec_idxstack, // .idxstack =
&EcatError, // .ecaterror =
0, // .DCtO =
0, // .DCl =
&ec_DCtime, // .DCtime =
&ec_SMcommtype[0], // .SMcommtype =
&ec_PDOassign[0], // .PDOassign =
Expand Down Expand Up @@ -1641,7 +1639,7 @@ uint32 ecx_readeeprom2(ecx_contextt *context, uint16 slave, int timeout)
* @param[in] idx = Used datagram index.
* @param[in] data = Pointer to process data segment.
* @param[in] length = Length of data segment in bytes.
* @param[in] dcoffset = Offset position of DC frame.
* @param[in] DCO = Offset position of DC frame.
*/
static void ecx_pushindex(ecx_contextt *context, uint8 idx, void *data, uint16 length, uint16 DCO)
{
Expand All @@ -1650,7 +1648,7 @@ static void ecx_pushindex(ecx_contextt *context, uint8 idx, void *data, uint16 l
context->idxstack->idx[context->idxstack->pushed] = idx;
context->idxstack->data[context->idxstack->pushed] = data;
context->idxstack->length[context->idxstack->pushed] = length;
context->idxstack->dcoffset[context->idxstack->pulled] = DCO;
context->idxstack->dcoffset[context->idxstack->pushed] = DCO;
context->idxstack->pushed++;
}
}
Expand Down
4 changes: 0 additions & 4 deletions soem/ethercatmain.h
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,6 @@ struct ecx_context
ec_idxstackT *idxstack;
/** reference to ecaterror state */
boolean *ecaterror;
/** internal, position of DC datagram in process data packet */
uint16 DCtO;
/** internal, length of DC datagram */
uint16 DCl;
/** reference to last DC time from slaves */
int64 *DCtime;
/** internal, SM buffer */
Expand Down

0 comments on commit 92ff466

Please sign in to comment.