diff --git a/soem/ethercatmain.c b/soem/ethercatmain.c index 666325d8..b15fae69 100644 --- a/soem/ethercatmain.c +++ b/soem/ethercatmain.c @@ -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; }