Skip to content

Commit

Permalink
When broadcast read the state,it is OK if the WKC is higher
Browse files Browse the repository at this point in the history
  • Loading branch information
rtlaka committed Feb 2, 2018
1 parent 28d82fa commit 2b339a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soem/ethercatmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ int ecx_readstate(ecx_contextt *context)
rval = 0;
wkc = ecx_BRD(context->port, 0, ECT_REG_ALSTAT, sizeof(rval), &rval, EC_TIMEOUTRET);

if(wkc == *(context->slavecount))
if(wkc >= *(context->slavecount))
{
allslavespresent = TRUE;
}
Expand Down

0 comments on commit 2b339a1

Please sign in to comment.