Add node_id to econotag
This commit is contained in:
parent
ed1780f9af
commit
af4ef9531c
|
@ -280,6 +280,8 @@ void oui_to_eui64(rimeaddr_t *eui64, uint32_t oui, uint64_t ext) {
|
||||||
eui64->u8[7] = ext & 0xff;
|
eui64->u8[7] = ext & 0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsigned short node_id = 0;
|
||||||
|
|
||||||
void
|
void
|
||||||
set_rimeaddr(rimeaddr_t *addr)
|
set_rimeaddr(rimeaddr_t *addr)
|
||||||
{
|
{
|
||||||
|
@ -332,6 +334,7 @@ set_rimeaddr(rimeaddr_t *addr)
|
||||||
PRINTF("loading rime address from flash.\n\r");
|
PRINTF("loading rime address from flash.\n\r");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
node_id = (addr->u8[6] << 8 | addr->u8[7]);
|
||||||
rimeaddr_set_node_addr(addr);
|
rimeaddr_set_node_addr(addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue