]> git.gag.com Git - fw/altos/commitdiff
altos: Fix up 'help' command for 8051
authorKeith Packard <keithp@keithp.com>
Mon, 11 Mar 2013 04:05:34 +0000 (21:05 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 11 Mar 2013 04:05:34 +0000 (21:05 -0700)
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 <keithp@keithp.com>
src/core/ao_cmd.c

index 3182acb7e83e01667a1e6624b049c907be0b34f7..c0e1a6b59c5fe3f1a823474a18c2c3e2ab5566ef 100644 (file)
@@ -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++) {