Merge pull request #539 from Wanga/master

Add group checking for slave input offset calculation

fixes #538
This commit is contained in:
nakarlsson 2021-08-10 07:17:09 +02:00 committed by GitHub
commit be1a2df6b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -1471,9 +1471,12 @@ int ecx_config_overlap_map_group(ecx_contextt *context, void *pIOmap, uint8 grou
/* Move calculated inputs with OBytes offset*/
for (slave = 1; slave <= *(context->slavecount); slave++)
{
if (!group || (group == context->slavelist[slave].group))
{
context->slavelist[slave].inputs += context->grouplist[group].Obytes;
}
}
if (!group)
{