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

diff -r 3b61ec73acd2 -r f859d567f94e lib/slave_config.c
--- a/lib/slave_config.c	Fri Jan 22 10:10:02 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 3b61ec73acd2 -r f859d567f94e master/slave_config.c
--- a/master/slave_config.c	Fri Jan 22 10:10:02 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];