Fix Wismote randon_init for link-layer addresses shorter than 8 bytes
This commit is contained in:
parent
c792993664
commit
265b65c67c
@ -257,7 +257,7 @@ main(int argc, char **argv)
|
||||
init_platform();
|
||||
|
||||
set_rime_addr();
|
||||
random_init(linkaddr_node_addr.u8[6] + linkaddr_node_addr.u8[7]);
|
||||
random_init(linkaddr_node_addr.u8[LINKADDR_SIZE-2] + linkaddr_node_addr.u8[LINKADDR_SIZE-1]);
|
||||
|
||||
cc2520_init();
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user