Skip to content

Commit

Permalink
Merge pull request #157 from nakarlsson/master
Browse files Browse the repository at this point in the history
When broadcast read the state,it is OK if the WKC is higher
  • Loading branch information
nakarlsson committed Feb 2, 2018
2 parents 0adfb00 + 2b339a1 commit 8094ff1
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 8094ff1

Please sign in to comment.