From: Keith Packard Date: Mon, 11 Mar 2013 04:05:34 +0000 (-0700) Subject: altos: Fix up 'help' command for 8051 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=31c2760ee919a90e440d014d7d303707d863bdf6;p=fw%2Faltos altos: Fix up 'help' command for 8051 The help command was rewritten to avoid using printf, but the rewrite used 'const' instead of the required '__code' to point at constant strings. Signed-off-by: Keith Packard --- diff --git a/src/core/ao_cmd.c b/src/core/ao_cmd.c index 3182acb7..c0e1a6b5 100644 --- a/src/core/ao_cmd.c +++ b/src/core/ao_cmd.c @@ -310,7 +310,7 @@ help(void) __pdata uint8_t cmds; __pdata uint8_t cmd; __code struct ao_cmds * __pdata cs; - const char *h; + __code char *h; uint8_t e; for (cmds = 0; cmds < ao_ncmds; cmds++) {