changed the way that rime address is set
This commit is contained in:
parent
4da695ce72
commit
f4ddc371e8
|
@ -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.8 2007/11/15 13:11:41 nifi Exp $
|
* @(#)$Id: contiki-esb-default-init-net.c,v 1.9 2007/12/17 12:17:23 nifi Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "contiki-esb.h"
|
#include "contiki-esb.h"
|
||||||
|
@ -45,8 +45,7 @@ init_net(void)
|
||||||
|
|
||||||
tr1001_init();
|
tr1001_init();
|
||||||
rime_init(nullmac_init(&tr1001_driver));
|
rime_init(nullmac_init(&tr1001_driver));
|
||||||
rimeaddr.u8[0] = node_id >> 8;
|
rimeaddr.u16[0] = node_id;
|
||||||
rimeaddr.u8[1] = node_id & 0xff;
|
|
||||||
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