mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-15 00:29:02 +00:00
Merge pull request #1230 from simonduq/fix-wismote-random-init
Fix Wismote randon_init for link-layer addresses shorter than 8 bytes
This commit is contained in:
commit
10395fffde
@ -257,7 +257,7 @@ main(int argc, char **argv)
|
|||||||
init_platform();
|
init_platform();
|
||||||
|
|
||||||
set_rime_addr();
|
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();
|
cc2520_init();
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user