From dfd9fa4d9d2497bed8ec2547ddc87c0794275ebd Mon Sep 17 00:00:00 2001 From: 流光 <1004383796@qq.com> Date: Fri, 20 Sep 2019 14:48:01 +0800 Subject: [修复] 修复msh无法配置超过256字节的长度输入 | Fixed MSH unable to configure input length exceeding 256 bytes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/finsh/shell.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components') diff --git a/components/finsh/shell.h b/components/finsh/shell.h index 2cf2c9b833..fd33cb7ccb 100644 --- a/components/finsh/shell.h +++ b/components/finsh/shell.h @@ -79,8 +79,8 @@ struct finsh_shell #endif char line[FINSH_CMD_SIZE]; - rt_uint8_t line_position; - rt_uint8_t line_curpos; + rt_uint16_t line_position; + rt_uint16_t line_curpos; #ifndef RT_USING_POSIX rt_device_t device; -- cgit v1.3.1