initializing rimeaddr from nodeid similar to sky platform (!= esb platform)
This commit is contained in:
parent
54bef4bea3
commit
afb1cb28d3
1 changed files with 4 additions and 3 deletions
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* @(#)$Id: init-net-rime.c,v 1.4 2007/11/15 13:11:41 nifi Exp $
|
* @(#)$Id: init-net-rime.c,v 1.5 2007/12/13 16:11:22 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "contiki.h"
|
#include "contiki.h"
|
||||||
|
@ -48,7 +48,8 @@ init_net(void)
|
||||||
nullmac_init(&cooja_driver);
|
nullmac_init(&cooja_driver);
|
||||||
rime_init(&nullmac_driver);
|
rime_init(&nullmac_driver);
|
||||||
|
|
||||||
rimeaddr.u8[0] = node_id >> 8;
|
rimeaddr.u16[0] = node_id;
|
||||||
rimeaddr.u8[1] = node_id & 0xff;
|
/* rimeaddr.u8[0] = node_id >> 8;
|
||||||
|
rimeaddr.u8[1] = node_id & 0xff; */
|
||||||
rimeaddr_set_node_addr(&rimeaddr);
|
rimeaddr_set_node_addr(&rimeaddr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue