Add node_id to econotag
This commit is contained in:
parent
ed1780f9af
commit
af4ef9531c
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue