Merge pull request #157 from nakarlsson/master

When broadcast read the state,it is OK if the WKC is higher
pull/159/head v1.3.2
nakarlsson 2018-02-02 08:29:46 +01:00 committed by GitHub
commit 8094ff1b80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}