projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f63065
)
altos: Save memory in ao_cmd.c
author
Keith Packard
<keithp@keithp.com>
Sat, 7 Apr 2012 07:22:41 +0000
(
00:22
-0700)
committer
Keith Packard
<keithp@keithp.com>
Sat, 7 Apr 2012 07:22:41 +0000
(
00:22
-0700)
Shrink a couple of help strings
move a variable in ao_cmd from data to pdata.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_cmd.c
patch
|
blob
|
history
diff --git
a/src/core/ao_cmd.c
b/src/core/ao_cmd.c
index cde68b3991ca062cc4117c1e6a2e96e1f01de035..fdc70007a36d414c14fe6883d5a07bcd83863041 100644
(file)
--- 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\0
Show t
asks" },
- { echo, "E <0 off, 1 on>\0
Set echo mode
" },
+ { ao_task_info, "T\0
T
asks" },
+ { echo, "E <0 off, 1 on>\0
Echo
" },
{ ao_reboot, "r eboot\0Reboot" },
{ version, "v\0Version" },
{ 0, NULL },