merge
authorFlorian Pose <fp@igh-essen.com>
Fri, 22 Jan 2016 13:09:43 +0100
changeset 2635 42b62867574d
parent 2634 f859d567f94e (diff)
parent 2630 a380cce7d6f0 (current diff)
child 2641 535465bf176d
merge
lib/slave_config.c
master/domain.c
master/domain.h
master/fmmu_config.c
master/fmmu_config.h
master/fsm_slave_config.c
master/globals.h
master/ioctl.c
master/slave_config.c
master/slave_config.h
--- a/lib/slave_config.c	Tue Apr 14 16:25:44 2015 -0400
+++ b/lib/slave_config.c	Fri Jan 22 13:09:43 2016 +0100
@@ -249,8 +249,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/fsm_slave_config.c	Tue Apr 14 16:25:44 2015 -0400
+++ b/master/fsm_slave_config.c	Fri Jan 22 13:09:43 2016 +0100
@@ -1129,7 +1129,7 @@
             size = ec_pdo_list_total_size(&sync_config->pdos);
 
             // determine, if PDOs shall be transferred via this SM
-            // inthat case, enable sync manager in every case
+            // in that case, enable sync manager in every case
             for (j = 0; j < sc->used_fmmus; j++) {
                 if (sc->fmmu_configs[j].sync_index == sync_index) {
                     pdo_xfer = 1;
--- a/master/slave_config.c	Tue Apr 14 16:25:44 2015 -0400
+++ b/master/slave_config.c	Fri Jan 22 13:09:43 2016 +0100
@@ -779,8 +779,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];