summaryrefslogtreecommitdiff
path: root/src/core/ao_cmd.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-04-07 00:22:41 -0700
committerKeith Packard <keithp@keithp.com>2012-04-07 00:22:41 -0700
commit41a8383ccd29351f3a88a374f9456d6efb71b9a0 (patch)
treedd948b2c15e7d49b44b42e67ab9f91ca137a4ff5 /src/core/ao_cmd.c
parent5f63065a16b65618b39314880c72074f0a8b5550 (diff)
altos: Save memory in ao_cmd.c
Shrink a couple of help strings move a variable in ao_cmd from data to pdata. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_cmd.c')
-rw-r--r--src/core/ao_cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ao_cmd.c b/src/core/ao_cmd.c
index cde68b39..fdc70007 100644
--- a/src/core/ao_cmd.c
+++ b/src/core/ao_cmd.c
@@ -300,7 +300,7 @@ ao_cmd_register(__code struct ao_cmds *cmds)
void
ao_cmd(void)
{
- char c;
+ __pdata char c;
uint8_t cmd, cmds;
__code struct ao_cmds * __xdata cs;
void (*__xdata func)(void);
@@ -336,8 +336,8 @@ __xdata struct ao_task ao_cmd_task;
__code struct ao_cmds ao_base_cmds[] = {
{ help, "?\0Help" },
- { ao_task_info, "T\0Show tasks" },
- { echo, "E <0 off, 1 on>\0Set echo mode" },
+ { ao_task_info, "T\0Tasks" },
+ { echo, "E <0 off, 1 on>\0Echo" },
{ ao_reboot, "r eboot\0Reboot" },
{ version, "v\0Version" },
{ 0, NULL },