src/nmtSlave.c
changeset 370 6fecf36df407
parent 365 9b76e0881beb
child 381 854c43cdc24a
equal deleted inserted replaced
369:8b67289d50b5 370:6fecf36df407
    31 **
    31 **
    32 */
    32 */
    33 #include "nmtSlave.h"
    33 #include "nmtSlave.h"
    34 #include "states.h"
    34 #include "states.h"
    35 #include "canfestival.h"
    35 #include "canfestival.h"
       
    36 #include "sysdep.h"
    36 
    37 
    37 /*!
    38 /*!
    38 ** put the slave in the state wanted by the master
    39 ** put the slave in the state wanted by the master
    39 **
    40 **
    40 ** @param d
    41 ** @param d
   103 #endif
   104 #endif
   104 
   105 
   105   MSG_WAR(0x3407, "Send a Boot-Up msg ", 0);
   106   MSG_WAR(0x3407, "Send a Boot-Up msg ", 0);
   106 
   107 
   107   /* message configuration */
   108   /* message configuration */
   108   m.cob_id = NODE_GUARD << 7 | *d->bDeviceNodeId;
   109   {
       
   110 	  UNS16 tmp = NODE_GUARD << 7 | *d->bDeviceNodeId; 
       
   111 	  m.cob_id = UNS16_LE(tmp);
       
   112   }
   109   m.rtr = NOT_A_REQUEST;
   113   m.rtr = NOT_A_REQUEST;
   110   m.len = 1;
   114   m.len = 1;
   111   m.data[0] = 0x00;
   115   m.data[0] = 0x00;
   112 
   116 
   113   return canSend(d->canHandle,&m);
   117   return canSend(d->canHandle,&m);