Post_sync have to be called even if in pre-op state. Fixed.
authoretisserant
Thu, 12 Apr 2007 16:17:35 +0200
changeset 153 1c1ad874fe8f
parent 152 5e14844e5756
child 154 1b3165f2d17d
Post_sync have to be called even if in pre-op state. Fixed.
src/sync.c
--- a/src/sync.c	Thu Apr 12 16:14:07 2007 +0200
+++ b/src/sync.c	Thu Apr 12 16:17:35 2007 +0200
@@ -123,11 +123,11 @@
   
   MSG_WAR(0x3002, "SYNC received. Proceed. ", 0);
   
+  (*d->post_sync)();
+
   /* only operational state allows PDO transmission */
   if( d->nodeState != Operational ) 
     return 0;
-
-   (*d->post_sync)();
   
   /* So, the node is in operational state */
   /* study all PDO stored in the objects dictionary */