[at]优先判断是否是URC数据

This commit is contained in:
yangpeng 2023-09-25 17:25:30 +08:00 committed by guo
parent c386a2c956
commit 8012c0c9a2
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{