Add node_id to econotag

This commit is contained in:
Mariano Alvira 2011-10-25 10:09:28 -04:00
parent ed1780f9af
commit af4ef9531c

View file

@ -280,6 +280,8 @@ void oui_to_eui64(rimeaddr_t *eui64, uint32_t oui, uint64_t ext) {
eui64->u8[7] = ext & 0xff;
}
unsigned short node_id = 0;
void
set_rimeaddr(rimeaddr_t *addr)
{
@ -332,6 +334,7 @@ set_rimeaddr(rimeaddr_t *addr)
PRINTF("loading rime address from flash.\n\r");
}
node_id = (addr->u8[6] << 8 | addr->u8[7]);
rimeaddr_set_node_addr(addr);
}