Skip to content

Commit

Permalink
Merge pull request OpenEtherCATsociety#539 from Wanga/master
Browse files Browse the repository at this point in the history
Add group checking for slave input offset calculation

fixes OpenEtherCATsociety#538
  • Loading branch information
nakarlsson authored Aug 10, 2021
2 parents 04f7bae + 9fef1fc commit be1a2df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion soem/ethercatconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -1472,7 +1472,10 @@ 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++)
{
context->slavelist[slave].inputs += context->grouplist[group].Obytes;
if (!group || (group == context->slavelist[slave].group))
{
context->slavelist[slave].inputs += context->grouplist[group].Obytes;
}
}

if (!group)
Expand Down

0 comments on commit be1a2df

Please sign in to comment.