--- a/lib/slave_config.c Fri May 13 17:43:00 2016 +0200
+++ b/lib/slave_config.c Fri Sep 16 11:56:53 2016 +0200
@@ -232,8 +232,9 @@
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];
@@ -243,9 +244,9 @@
if (ret)
return ret;
+ ecrt_slave_config_pdo_mapping_clear(sc, pdo_info->index);
+
if (pdo_info->n_entries && pdo_info->entries) {
- ecrt_slave_config_pdo_mapping_clear(sc, pdo_info->index);
-
for (k = 0; k < pdo_info->n_entries; k++) {
entry_info = &pdo_info->entries[k];
--- a/master/slave_config.c Fri May 13 17:43:00 2016 +0200
+++ b/master/slave_config.c Fri Sep 16 11:56:53 2016 +0200
@@ -702,8 +702,9 @@
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];
@@ -713,9 +714,9 @@
if (ret)
return ret;
+ ecrt_slave_config_pdo_mapping_clear(sc, pdo_info->index);
+
if (pdo_info->n_entries && pdo_info->entries) {
- ecrt_slave_config_pdo_mapping_clear(sc, pdo_info->index);
-
for (k = 0; k < pdo_info->n_entries; k++) {
entry_info = &pdo_info->entries[k];