]> rtime.felk.cvut.cz Git - CanFestival-3.git/commitdiff
Post_sync have to be called even if in pre-op state. Fixed.
authoretisserant <etisserant>
Thu, 12 Apr 2007 14:17:35 +0000 (14:17 +0000)
committeretisserant <etisserant>
Thu, 12 Apr 2007 14:17:35 +0000 (14:17 +0000)
src/sync.c

index 0082ec1a751d376278a80971ce8eaf68e49dd800..10312115fd771b8179b25fd69aa3afc24506b5ed 100644 (file)
@@ -123,11 +123,11 @@ UNS8 proceedSYNC(CO_Data* d, Message *m)
   \r
   MSG_WAR(0x3002, "SYNC received. Proceed. ", 0);\r
   \r
+  (*d->post_sync)();\r
+\r
   /* only operational state allows PDO transmission */\r
   if( d->nodeState != Operational ) \r
     return 0;\r
-\r
-   (*d->post_sync)();\r
   \r
   /* So, the node is in operational state */\r
   /* study all PDO stored in the objects dictionary */ \r