Fixed bug in Pdo mapping.
authorFlorian Pose <fp@igh-essen.com>
Fri, 22 Feb 2008 18:41:24 +0000
changeset 827 205eccb70bce
parent 826 70aeae0de217
child 828 1ca40d2e6a8d
Fixed bug in Pdo mapping.
master/fsm_pdo_mapping.c
--- a/master/fsm_pdo_mapping.c	Fri Feb 22 18:40:41 2008 +0000
+++ b/master/fsm_pdo_mapping.c	Fri Feb 22 18:41:24 2008 +0000
@@ -162,6 +162,8 @@
         ec_fsm_pdo_mapping_t *fsm /**< mapping state machine */
         )
 {
+    fsm->dir++;
+
     for (; fsm->dir <= EC_DIR_INPUT; fsm->dir++) {
         fsm->mapping = &fsm->slave->config->mapping[fsm->dir];