When broadcast read the state,it is OK if the WKC is higher

pull/157/head
rtlaka 2018-02-02 08:27:19 +01:00
parent 28d82fa8fd
commit 2b339a135b
1 changed files with 1 additions and 1 deletions

View File

@ -732,7 +732,7 @@ int ecx_readstate(ecx_contextt *context)
rval = 0; rval = 0;
wkc = ecx_BRD(context->port, 0, ECT_REG_ALSTAT, sizeof(rval), &rval, EC_TIMEOUTRET); wkc = ecx_BRD(context->port, 0, ECT_REG_ALSTAT, sizeof(rval), &rval, EC_TIMEOUTRET);
if(wkc == *(context->slavecount)) if(wkc >= *(context->slavecount))
{ {
allslavespresent = TRUE; allslavespresent = TRUE;
} }