# HG changeset patch
# User Florian Pose <fp@igh-essen.com>
# Date 1453453918 -3600
# Node ID 291dddb7233e80667dd973941484d8bfe119958e
# Parent  b11e1014edfe704684103991dad143658b540897
Always clear PDO assignment of configured sync managers.

diff -r b11e1014edfe -r 291dddb7233e lib/slave_config.c
--- 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];
diff -r b11e1014edfe -r 291dddb7233e master/slave_config.c
--- 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];