未验证 提交 f2d78e87 编写于 作者: W wenxingpt 提交者: GitHub

[component][at] fix(misc): fix null char input issue

fix issue #7005
上级 9a77eedd
......@@ -33,6 +33,7 @@
#define AT_CMD_SEMICOLON ';'
#define AT_CMD_CR '\r'
#define AT_CMD_LF '\n'
#define AT_CMD_NULL '\0'
static at_server_t at_server_local = RT_NULL;
static at_cmd_t cmd_table = RT_NULL;
......@@ -474,6 +475,10 @@ static void server_parser(at_server_t server)
continue;
}
else if (ch == AT_CMD_NULL)
{
continue;
}
else
{
at_server_printf("%c", ch);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册