commit
9d4553ee08
@ -146,7 +146,7 @@ app_quit(void)
|
||||
if(file != -1) {
|
||||
cfs_close(file);
|
||||
}
|
||||
puts("Press any key to continue...");
|
||||
puts("Press <enter> to continue...");
|
||||
getchar();
|
||||
process_exit(&wget_process);
|
||||
LOADER_UNLOAD();
|
||||
@ -170,6 +170,7 @@ PROCESS_THREAD(wget_process, ev, data)
|
||||
puts(url);
|
||||
} else {
|
||||
fgets(url, sizeof(url), stdin);
|
||||
name[strlen(url) - 1] = 0;
|
||||
}
|
||||
fputs("Save as:", stdout);
|
||||
if(contiki_argc > 2) {
|
||||
@ -177,6 +178,7 @@ PROCESS_THREAD(wget_process, ev, data)
|
||||
puts(name);
|
||||
} else {
|
||||
fgets(name, sizeof(name), stdin);
|
||||
name[strlen(name) - 1] = 0;
|
||||
}
|
||||
file = cfs_open(name, CFS_WRITE);
|
||||
if(file == -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user