From 9b80e1be25cf5bb2e54d3316c80e0baffc87cf4b Mon Sep 17 00:00:00 2001 From: jonas Date: Thu, 9 Dec 2021 18:11:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DAT=E7=BB=84=E4=BB=B6=E5=9C=A8?= =?UTF-8?q?CLI=E6=A8=A1=E5=BC=8F=E4=B8=8B=EF=BC=8C=E6=8C=87=E4=BB=A4?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E8=BF=87=E9=95=BF=E5=AF=BC=E8=87=B4=E6=95=B0?= =?UTF-8?q?=E7=BB=84=E8=B6=8A=E7=95=8C=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/net/at/src/at_cli.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/net/at/src/at_cli.c b/components/net/at/src/at_cli.c index c589bb68a0..d51358d863 100644 --- a/components/net/at/src/at_cli.c +++ b/components/net/at/src/at_cli.c @@ -264,6 +264,10 @@ static void client_cli_parser(at_client_t client) } else { + if(cur_line_len >= FINSH_CMD_SIZE) + { + continue; + } rt_kprintf("%c", ch); cur_line[cur_line_len++] = ch; }