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