Kaynağa Gözat

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

流光 6 yıl önce
ebeveyn
işleme
dfd9fa4d9d
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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;