summaryrefslogtreecommitdiff
path: root/src/ao_cmd.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-07-04 18:08:19 -0700
committerKeith Packard <keithp@keithp.com>2011-07-04 18:08:19 -0700
commitb51e5466f7a125db873edd1fa9bd3881d7e98aad (patch)
treed7e03c0729bb398e0a7b8e9603751c0db0385f89 /src/ao_cmd.c
parent9e5e4c1ad82d621ceb7286f72c87eeaf5976f9bf (diff)
altos: Shrink help text
Reduce const space taken by command help text. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_cmd.c')
-rw-r--r--src/ao_cmd.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/ao_cmd.c b/src/ao_cmd.c
index 23346c3d..3f020dc3 100644
--- a/src/ao_cmd.c
+++ b/src/ao_cmd.c
@@ -221,8 +221,6 @@ version(void)
printf("software-version %s\n", ao_version);
}
-static const char help_txt[] = "All numbers are in hex";
-
#define NUM_CMDS 11
static __code struct ao_cmds *__xdata (ao_cmds[NUM_CMDS]);
@@ -234,7 +232,7 @@ help(void)
__xdata uint8_t cmds;
__xdata uint8_t cmd;
__code struct ao_cmds * __xdata cs;
- puts(help_txt);
+
for (cmds = 0; cmds < ao_ncmds; cmds++) {
cs = ao_cmds[cmds];
for (cmd = 0; cs[cmd].func; cmd++)
@@ -302,11 +300,11 @@ ao_cmd(void)
__xdata struct ao_task ao_cmd_task;
__code struct ao_cmds ao_base_cmds[] = {
- { help, "?\0Print this message" },
- { ao_task_info, "T\0Show task states" },
- { echo, "E <0 off, 1 on>\0Set command echo mode" },
+ { help, "?\0Help" },
+ { ao_task_info, "T\0Show tasks" },
+ { echo, "E <0 off, 1 on>\0Set echo mode" },
{ ao_reboot, "r eboot\0Reboot" },
- { version, "v\0Show version" },
+ { version, "v\0Version" },
{ 0, NULL },
};