Add missing PO2SOconfigx() hook to ecx_reconfig_slave()

This commit is contained in:
ArthurKetels 2021-08-02 20:52:22 +02:00 committed by GitHub
parent 219670218b
commit 6982a7648f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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 */