summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo C2015-05-08 22:50:22 +0200
committerLeo C2015-05-08 22:50:22 +0200
commit3f858d9f4836decae37d5a61f221bddf7a2f1e61 (patch)
tree82420e8ddfb262f6b035674eb2594e187c8a6f69
parent3ad4143bb11dd98f47c80e0b93d39b59c2f8e329 (diff)
downloadz180-stamp-3f858d9f4836decae37d5a61f221bddf7a2f1e61.zip
command 'help <topic>' should return success
-rw-r--r--TODO.md5
-rw-r--r--avr/command.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/TODO.md b/TODO.md
index 625dd16..3ccd0d7 100644
--- a/TODO.md
+++ b/TODO.md
@@ -3,5 +3,8 @@ TODO List
- TODO: eliminate xmalloc
- TODO: build time directory as lib
-- TODO: command 'help <topic>' should return success
- TODO: file search path. 'cd' command?
+
+----------------------------------------------------
+- Done:
+ - command 'help <topic>' should return success
diff --git a/avr/command.c b/avr/command.c
index 46e3a8a..ed25dee 100644
--- a/avr/command.c
+++ b/avr/command.c
@@ -120,7 +120,7 @@ command_ret_t _do_help(cmd_tbl_t *cmd_start, int cmd_items, cmd_tbl_t * cmdtp,
*/
for (i = 1; i < argc; ++i) {
if ((cmdtp = find_cmd_tbl (argv[i], cmd_start, cmd_items )) != NULL) {
- rcode = cmd_usage(cmdtp);
+ cmd_usage(cmdtp);
} else {
printf_P(PSTR("Unknown command '%s' - try 'help'"
" without arguments.\n\n"), argv[i]