Always clear PDO assignment of configured sync managers.
--- a/lib/slave_config.c Thu Feb 25 15:23:42 2016 +0100
+++ b/lib/slave_config.c Fri Jan 22 10:11:58 2016 +0100
@@ -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];
--- a/master/slave_config.c Thu Feb 25 15:23:42 2016 +0100
+++ b/master/slave_config.c Fri Jan 22 10:11:58 2016 +0100
@@ -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];