Always clear PDO mapping in ecrt_slave_config_pdos().
This commit is contained in:
parent
8812d5bf73
commit
8f599d1eb8
|
|
@ -244,9 +244,9 @@ int ecrt_slave_config_pdos(ec_slave_config_t *sc,
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
if (pdo_info->n_entries && pdo_info->entries) {
|
||||
ecrt_slave_config_pdo_mapping_clear(sc, pdo_info->index);
|
||||
ecrt_slave_config_pdo_mapping_clear(sc, pdo_info->index);
|
||||
|
||||
if (pdo_info->n_entries && pdo_info->entries) {
|
||||
for (k = 0; k < pdo_info->n_entries; k++) {
|
||||
entry_info = &pdo_info->entries[k];
|
||||
|
||||
|
|
|
|||
|
|
@ -714,9 +714,9 @@ int ecrt_slave_config_pdos(ec_slave_config_t *sc,
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
if (pdo_info->n_entries && pdo_info->entries) {
|
||||
ecrt_slave_config_pdo_mapping_clear(sc, pdo_info->index);
|
||||
ecrt_slave_config_pdo_mapping_clear(sc, pdo_info->index);
|
||||
|
||||
if (pdo_info->n_entries && pdo_info->entries) {
|
||||
for (k = 0; k < pdo_info->n_entries; k++) {
|
||||
entry_info = &pdo_info->entries[k];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue