Skip to content

Commit

Permalink
Merge pull request contiki-os#1410 from oliverschmidt/master
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverschmidt committed Dec 2, 2015
2 parents 27835ee + 922bebc commit 9d4553e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/wget/wget.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -170,13 +170,15 @@ 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) {
strcpy(name, contiki_argv[2]);
puts(name);
} else {
fgets(name, sizeof(name), stdin);
name[strlen(name) - 1] = 0;
}
file = cfs_open(name, CFS_WRITE);
if(file == -1) {
Expand Down

0 comments on commit 9d4553e

Please sign in to comment.