Always clear PDO assignment of configured sync managers.
This commit is contained in:
parent
2b18e00116
commit
8812d5bf73
|
|
@ -232,8 +232,9 @@ int ecrt_slave_config_pdos(ec_slave_config_t *sc,
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
ecrt_slave_config_pdo_assign_clear(sc, sync_info->index);
|
||||
|
||||
if (sync_info->n_pdos && sync_info->pdos) {
|
||||
ecrt_slave_config_pdo_assign_clear(sc, sync_info->index);
|
||||
|
||||
for (j = 0; j < sync_info->n_pdos; j++) {
|
||||
pdo_info = &sync_info->pdos[j];
|
||||
|
|
|
|||
|
|
@ -702,8 +702,9 @@ int ecrt_slave_config_pdos(ec_slave_config_t *sc,
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
ecrt_slave_config_pdo_assign_clear(sc, sync_info->index);
|
||||
|
||||
if (sync_info->n_pdos && sync_info->pdos) {
|
||||
ecrt_slave_config_pdo_assign_clear(sc, sync_info->index);
|
||||
|
||||
for (j = 0; j < sync_info->n_pdos; j++) {
|
||||
pdo_info = &sync_info->pdos[j];
|
||||
|
|
|
|||
Loading…
Reference in New Issue