Skip to content

Commit

Permalink
Merge pull request OpenEtherCATsociety#537 from ArthurKetels/master
Browse files Browse the repository at this point in the history
Add missing  PO2SOconfigx() hook to ecx_reconfig_slave()
  • Loading branch information
ArthurKetels authored Aug 2, 2021
2 parents 2196702 + 6982a76 commit 04f7bae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions soem/ethercatconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -1597,6 +1597,10 @@ int ecx_reconfig_slave(ecx_contextt *context, uint16 slave, int timeout)
{
context->slavelist[slave].PO2SOconfig(slave);
}
if (context->slavelist[slave].PO2SOconfigx) /* only if registered */
{
context->slavelist[slave].PO2SOconfigx(context, slave);
}
ecx_FPWRw(context->port, configadr, ECT_REG_ALCTL, htoes(EC_STATE_SAFE_OP) , timeout); /* set safeop status */
state = ecx_statecheck(context, slave, EC_STATE_SAFE_OP, EC_TIMEOUTSTATE); /* check state change safe-op */
/* program configured FMMU */
Expand Down

0 comments on commit 04f7bae

Please sign in to comment.