From 8012c0c9a20e3d7af1b7efc290684a8949e4c900 Mon Sep 17 00:00:00 2001 From: yangpeng Date: Mon, 25 Sep 2023 17:25:30 +0800 Subject: [PATCH] =?UTF-8?q?[at]=E4=BC=98=E5=85=88=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E6=98=AFURC=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/net/at/src/at_client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/net/at/src/at_client.c b/components/net/at/src/at_client.c index e0d97c94ea..06e23c7a38 100644 --- a/components/net/at/src/at_client.c +++ b/components/net/at/src/at_client.c @@ -698,8 +698,8 @@ static int at_recv_readline(at_client_t client) } /* is newline or URC data */ - if ((ch == '\n' && last_ch == '\r') || (client->end_sign != 0 && ch == client->end_sign) - || (client->urc = get_urc_obj(client)) != RT_NULL) + if ((client->urc = get_urc_obj(client)) != RT_NULL || (ch == '\n' && last_ch == '\r') + || (client->end_sign != 0 && ch == client->end_sign)) { if (is_full) {