Merge pull request #539 from Wanga/master
Add group checking for slave input offset calculation fixes #538
This commit is contained in:
commit
be1a2df6b2
|
@ -1471,9 +1471,12 @@ int ecx_config_overlap_map_group(ecx_contextt *context, void *pIOmap, uint8 grou
|
||||||
|
|
||||||
/* Move calculated inputs with OBytes offset*/
|
/* Move calculated inputs with OBytes offset*/
|
||||||
for (slave = 1; slave <= *(context->slavecount); slave++)
|
for (slave = 1; slave <= *(context->slavecount); slave++)
|
||||||
|
{
|
||||||
|
if (!group || (group == context->slavelist[slave].group))
|
||||||
{
|
{
|
||||||
context->slavelist[slave].inputs += context->grouplist[group].Obytes;
|
context->slavelist[slave].inputs += context->grouplist[group].Obytes;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!group)
|
if (!group)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue