Browse Source

[修复] 修复msh无法配置超过256字节的长度输入 | Fixed MSH unable to configure input length exceeding 256 bytes

流光 5 years ago
parent
commit
dfd9fa4d9d
1 changed files with 2 additions and 2 deletions
  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;