# HG changeset patch
# User etisserant
# Date 1176387455 -7200
# Node ID 1c1ad874fe8f8419053895ba0b61dad85a8f4f63
# Parent  5e14844e575659c7e53aee252fd34aec2d16c7d4
Post_sync have to be called even if in pre-op state. Fixed.

diff -r 5e14844e5756 -r 1c1ad874fe8f 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 */