From 61bb8a05d2fc2a3a70b75a75151e2d8d74cb08af Mon Sep 17 00:00:00 2001 From: HubretXie Date: Thu, 1 Nov 2018 18:43:04 +0800 Subject: [PATCH] Update at_socket.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit at socket 接收数据正常时清除错误标识 --- components/net/at/at_socket/at_socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/net/at/at_socket/at_socket.c b/components/net/at/at_socket/at_socket.c index 6357caa66e..01646f0d89 100644 --- a/components/net/at/at_socket/at_socket.c +++ b/components/net/at/at_socket/at_socket.c @@ -700,7 +700,7 @@ __exit: { result = recv_len; at_do_event_changes(sock, AT_EVENT_RECV, RT_FALSE); - + errno = 0; if (!rt_slist_isempty(&sock->recvpkt_list)) { at_do_event_changes(sock, AT_EVENT_RECV, RT_TRUE);