Minor: Moved setting of alternate PDO mapping flag.
authorFlorian Pose <fp@igh-essen.com>
Thu, 20 Sep 2007 10:05:37 +0000
changeset 745 3f4e5a50733e
parent 744 b83392e8cd66
child 746 ef0f6eb5cd7c
Minor: Moved setting of alternate PDO mapping flag.
master/slave.c
master/sync.c
--- a/master/slave.c	Thu Sep 20 09:44:27 2007 +0000
+++ b/master/slave.c	Thu Sep 20 10:05:37 2007 +0000
@@ -1385,6 +1385,7 @@
         return;
 
     ec_sync_clear_pdos(sync);
+    sync->alt_mapping = 1;
 }
 
 /*****************************************************************************/
--- a/master/sync.c	Thu Sep 20 09:44:27 2007 +0000
+++ b/master/sync.c	Thu Sep 20 10:05:37 2007 +0000
@@ -193,8 +193,6 @@
         ec_pdo_clear(pdo);
         kfree(pdo);
     }
-
-    sync->alt_mapping = 1;
 }
 
 /*****************************************************************************/