mirror of
https://github.com/OpenEtherCATsociety/SOEM.git
synced 2026-08-18 11:46:04 +08:00
When broadcast read the state,it is OK if the WKC is higher
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user