src/sync.c
changeset 236 905677ed00f3
parent 235 f812bf6b7237
child 252 b0dd37421d28
equal deleted inserted replaced
235:f812bf6b7237 236:905677ed00f3
   146   MSG_WAR(0x3002, "SYNC received. Proceed. ", 0);
   146   MSG_WAR(0x3002, "SYNC received. Proceed. ", 0);
   147   
   147   
   148   (*d->post_sync)();
   148   (*d->post_sync)();
   149 
   149 
   150   /* only operational state allows PDO transmission */
   150   /* only operational state allows PDO transmission */
   151   if( d->nodeState != Operational ) 
   151   if(! d->CurrentCommunicationState.csPDO) 
   152     return 0;
   152     return 0;
   153 
   153 
   154   res = _sendPDOevent(d, 1 /*isSyncEvent*/ );
   154   res = _sendPDOevent(d, 1 /*isSyncEvent*/ );
   155   
   155   
   156   /*Call user app callback*/
   156   /*Call user app callback*/