Explorar o código

Merge pull request #3092 from liu2guang/finsh_update_dev

[修复] 修复msh无法配置超过256字节的长度输入 | Fixed MSH unable to configure input leng…
Bernard Xiong %!s(int64=5) %!d(string=hai) anos
pai
achega
4d63839024
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      components/finsh/shell.h

+ 2 - 2
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;