Explicitly initialize queue buffer in the main startup routine only if uIP is used.
The Rime stack already does this on its own, and there is no need to do it twice.
This commit is contained in:
parent
b9e15a5986
commit
9cbfede2b6
1 changed files with 2 additions and 2 deletions
|
@ -199,12 +199,12 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
set_rime_addr();
|
set_rime_addr();
|
||||||
|
|
||||||
queuebuf_init();
|
|
||||||
|
|
||||||
netstack_init();
|
netstack_init();
|
||||||
printf("MAC %s RDC %s NETWORK %s\n", NETSTACK_MAC.name, NETSTACK_RDC.name, NETSTACK_NETWORK.name);
|
printf("MAC %s RDC %s NETWORK %s\n", NETSTACK_MAC.name, NETSTACK_RDC.name, NETSTACK_NETWORK.name);
|
||||||
|
|
||||||
#if WITH_UIP6
|
#if WITH_UIP6
|
||||||
|
queuebuf_init();
|
||||||
|
|
||||||
memcpy(&uip_lladdr.addr, serial_id, sizeof(uip_lladdr.addr));
|
memcpy(&uip_lladdr.addr, serial_id, sizeof(uip_lladdr.addr));
|
||||||
|
|
||||||
process_start(&tcpip_process, NULL);
|
process_start(&tcpip_process, NULL);
|
||||||
|
|
Loading…
Reference in a new issue