src/lifegrd.c
changeset 669 50da44ebaf00
parent 668 ba53613e94e4
child 750 bfb63ff7106e
equal deleted inserted replaced
668:ba53613e94e4 669:50da44ebaf00
   140         d->NMTable[nodeId] = newNodeState;
   140         d->NMTable[nodeId] = newNodeState;
   141       }
   141       }
   142 
   142 
   143       /* Boot-Up frame reception */
   143       /* Boot-Up frame reception */
   144       if ( d->NMTable[nodeId] == Initialisation)
   144       if ( d->NMTable[nodeId] == Initialisation)
   145         {
   145       {
   146           /*
   146           /*
   147           ** The device send the boot-up message (Initialisation)
   147           ** The device send the boot-up message (Initialisation)
   148           ** to indicate the master that it is entered in
   148           ** to indicate the master that it is entered in
   149           ** pre_operational mode
   149           ** pre_operational mode
   150           ** Because the  device enter automaticaly in pre_operational
       
   151           ** mode,
       
   152           ** the pre_operational mode is stored
       
   153           ** NMTable[bus_id][nodeId] = Pre_operational
       
   154           */
   150           */
   155           MSG_WAR(0x3100, "The NMT is a bootup from node : ", nodeId);
   151           MSG_WAR(0x3100, "The NMT is a bootup from node : ", nodeId);
   156           
   152           /* call post SlaveBootup with NodeId */
   157           if(!send_consise_dcf(d,nodeId)){
   153 		  (*d->post_SlaveBootup)(d, nodeId);
   158              /* call post SlaveBootup with NodeId */
   154       }
   159 		  	(*d->post_SlaveBootup)(d, nodeId);
       
   160           }
       
   161         }
       
   162 
   155 
   163       if( d->NMTable[nodeId] != Unknown_state ) {
   156       if( d->NMTable[nodeId] != Unknown_state ) {
   164         UNS8 index, ConsummerHeartBeat_nodeId ;
   157         UNS8 index, ConsummerHeartBeat_nodeId ;
   165         for( index = (UNS8)0x00; index < *d->ConsumerHeartbeatCount; index++ )
   158         for( index = (UNS8)0x00; index < *d->ConsumerHeartbeatCount; index++ )
   166           {
   159           {