More explicit assignment of Rime address from node ID
This commit is contained in:
parent
381f5dc4cc
commit
babb455dae
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* @(#)$Id: contiki-esb-default-init-net.c,v 1.9 2007/12/17 12:17:23 nifi Exp $
|
* @(#)$Id: contiki-esb-default-init-net.c,v 1.10 2007/12/17 13:04:10 nifi Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "contiki-esb.h"
|
#include "contiki-esb.h"
|
||||||
|
@ -45,7 +45,8 @@ init_net(void)
|
||||||
|
|
||||||
tr1001_init();
|
tr1001_init();
|
||||||
rime_init(nullmac_init(&tr1001_driver));
|
rime_init(nullmac_init(&tr1001_driver));
|
||||||
rimeaddr.u16[0] = node_id;
|
rimeaddr.u8[0] = node_id & 0xff;
|
||||||
|
rimeaddr.u8[1] = node_id >> 8;
|
||||||
rimeaddr_set_node_addr(&rimeaddr);
|
rimeaddr_set_node_addr(&rimeaddr);
|
||||||
|
|
||||||
rs232_set_input(serial_input_byte);
|
rs232_set_input(serial_input_byte);
|
||||||
|
|
Loading…
Reference in a new issue