src/sync.c
changeset 153 1c1ad874fe8f
parent 149 fe50ada8020b
child 201 2966cd34162a
equal deleted inserted replaced
152:5e14844e5756 153:1c1ad874fe8f
   121   prp_j = 0x00;
   121   prp_j = 0x00;
   122   offset = 0x00;
   122   offset = 0x00;
   123   
   123   
   124   MSG_WAR(0x3002, "SYNC received. Proceed. ", 0);
   124   MSG_WAR(0x3002, "SYNC received. Proceed. ", 0);
   125   
   125   
       
   126   (*d->post_sync)();
       
   127 
   126   /* only operational state allows PDO transmission */
   128   /* only operational state allows PDO transmission */
   127   if( d->nodeState != Operational ) 
   129   if( d->nodeState != Operational ) 
   128     return 0;
   130     return 0;
   129 
       
   130    (*d->post_sync)();
       
   131   
   131   
   132   /* So, the node is in operational state */
   132   /* So, the node is in operational state */
   133   /* study all PDO stored in the objects dictionary */	
   133   /* study all PDO stored in the objects dictionary */	
   134  
   134  
   135   offsetObjdict = d->firstIndex->PDO_TRS;
   135   offsetObjdict = d->firstIndex->PDO_TRS;