changed the way that rime address is set

This commit is contained in:
nifi 2007-12-17 12:17:23 +00:00
parent 4da695ce72
commit f4ddc371e8

View File

@ -28,7 +28,7 @@
*
* 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"
@ -45,8 +45,7 @@ init_net(void)
tr1001_init();
rime_init(nullmac_init(&tr1001_driver));
rimeaddr.u8[0] = node_id >> 8;
rimeaddr.u8[1] = node_id & 0xff;
rimeaddr.u16[0] = node_id;
rimeaddr_set_node_addr(&rimeaddr);
rs232_set_input(serial_input_byte);