summaryrefslogtreecommitdiff
path: root/src/kernel/ao_cmd.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-02 22:03:26 -0700
committerKeith Packard <keithp@keithp.com>2014-06-02 22:03:26 -0700
commit7385c76af46ff400b9e79a8540199be289cb57c0 (patch)
tree245045f8f6a83e39d7757e12ef731e597144f651 /src/kernel/ao_cmd.c
parent177d3c0333fd4218f01e05c78cbc5f186c8e32c0 (diff)
altos: Configuring pyro channels can use more than 48 characters
Increase the command buffer from 48 to 128 bytes to hold the longest pyro configuration commands Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_cmd.c')
-rw-r--r--src/kernel/ao_cmd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel/ao_cmd.c b/src/kernel/ao_cmd.c
index cd662314..69372fed 100644
--- a/src/kernel/ao_cmd.c
+++ b/src/kernel/ao_cmd.c
@@ -23,7 +23,11 @@ __pdata uint32_t ao_cmd_lex_u32;
__pdata char ao_cmd_lex_c;
__pdata enum ao_cmd_status ao_cmd_status;
+#if AO_PYRO_NUM
+#define CMD_LEN 128
+#else
#define CMD_LEN 48
+#endif
static __xdata char cmd_line[CMD_LEN];
static __pdata uint8_t cmd_len;