mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-05 12:29:38 +00:00
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.
|
||||
*
|
||||
* @(#)$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);
|
||||
|
Loading…
Reference in New Issue
Block a user