提交 65340e46 编写于 作者: E eddylin83

fix at socket issue,online AT package might be fixed too(at_socket_device_register spell mistake)

上级 b2e800d1
......@@ -655,6 +655,10 @@ int at_recvfrom(int socket, void *mem, size_t len, int flags, struct sockaddr *f
{
timeout = RT_WAITING_FOREVER;
}
else
{
timeout = rt_tick_from_millisecond(timeout);
}
while (1)
{
......@@ -1161,7 +1165,7 @@ void at_freeaddrinfo(struct addrinfo *ai)
}
}
void at_scoket_device_register(const struct at_device_ops *ops)
void at_socket_device_register(const struct at_device_ops *ops)
{
RT_ASSERT(ops);
RT_ASSERT(ops->at_connect);
......
......@@ -129,7 +129,7 @@ int at_getaddrinfo(const char *nodename, const char *servname, const struct addr
void at_freeaddrinfo(struct addrinfo *ai);
struct at_socket *at_get_socket(int socket);
void at_scoket_device_register(const struct at_device_ops *ops);
void at_socket_device_register(const struct at_device_ops *ops);
#ifndef RT_USING_SAL
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册