Made use of PROCESS_PAUSE().
This commit is contained in:
parent
edff8c1da3
commit
a54c728b04
1 changed files with 17 additions and 17 deletions
|
@ -29,7 +29,7 @@
|
|||
*
|
||||
* This file is part of the Contiki desktop environment
|
||||
*
|
||||
* $Id: wget.c,v 1.3 2010/05/31 15:22:08 nifi Exp $
|
||||
* $Id: wget.c,v 1.4 2010/10/31 22:43:06 oliverschmidt Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -153,13 +153,8 @@ PROCESS_THREAD(wget_process, ev, data)
|
|||
|
||||
PROCESS_BEGIN();
|
||||
|
||||
process_post(PROCESS_CURRENT(), 0, NULL);
|
||||
PROCESS_PAUSE();
|
||||
|
||||
while(1) {
|
||||
|
||||
PROCESS_WAIT_EVENT();
|
||||
|
||||
if(ev == 0) {
|
||||
fputs("\nGet url:", stdout);
|
||||
gets(url);
|
||||
fputs("\nSave as:", stdout);
|
||||
|
@ -173,7 +168,12 @@ PROCESS_THREAD(wget_process, ev, data)
|
|||
petsciiconv_toascii(url, sizeof(url));
|
||||
start_get();
|
||||
}
|
||||
} else if(ev == tcpip_event) {
|
||||
|
||||
while(1) {
|
||||
|
||||
PROCESS_WAIT_EVENT();
|
||||
|
||||
if(ev == tcpip_event) {
|
||||
webclient_appcall(data);
|
||||
#if UIP_UDP
|
||||
} else if(ev == resolv_event_found) {
|
||||
|
|
Loading…
Reference in a new issue