Skip to content

Commit

Permalink
also configure the last SM (OpenEtherCATsociety#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
lbckmnn authored Jul 2, 2022
1 parent 9183e30 commit 42ec9bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions soem/ethercatconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ static void ecx_config_create_input_mappings(ecx_contextt *context, void *pIOmap
}
}
/* search for SM that contribute to the input mapping */
while ((SMc < (EC_MAXSM - 1)) && (FMMUdone < ((context->slavelist[slave].Ibits + 7) / 8)))
while ((SMc < EC_MAXSM) && (FMMUdone < ((context->slavelist[slave].Ibits + 7) / 8)))
{
EC_PRINT(" FMMU %d\n", FMMUc);
while ((SMc < (EC_MAXSM - 1)) && (context->slavelist[slave].SMtype[SMc] != 4))
Expand Down Expand Up @@ -1057,7 +1057,7 @@ static void ecx_config_create_output_mappings(ecx_contextt *context, void *pIOma
configadr = context->slavelist[slave].configadr;

/* search for SM that contribute to the output mapping */
while ((SMc < (EC_MAXSM - 1)) && (FMMUdone < ((context->slavelist[slave].Obits + 7) / 8)))
while ((SMc < EC_MAXSM) && (FMMUdone < ((context->slavelist[slave].Obits + 7) / 8)))
{
EC_PRINT(" FMMU %d\n", FMMUc);
while ((SMc < (EC_MAXSM - 1)) && (context->slavelist[slave].SMtype[SMc] != 3))
Expand Down

0 comments on commit 42ec9bf

Please sign in to comment.