Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion components/net/at/at_socket/at_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion components/net/at/at_socket/at_socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down