Skip to content

Commit f763f8e

Browse files
authored
Merge pull request #1898 from eddylin83/master
fix at socket issue
2 parents b2e800d + 65340e4 commit f763f8e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

components/net/at/at_socket/at_socket.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,10 @@ int at_recvfrom(int socket, void *mem, size_t len, int flags, struct sockaddr *f
655655
{
656656
timeout = RT_WAITING_FOREVER;
657657
}
658+
else
659+
{
660+
timeout = rt_tick_from_millisecond(timeout);
661+
}
658662

659663
while (1)
660664
{
@@ -1161,7 +1165,7 @@ void at_freeaddrinfo(struct addrinfo *ai)
11611165
}
11621166
}
11631167

1164-
void at_scoket_device_register(const struct at_device_ops *ops)
1168+
void at_socket_device_register(const struct at_device_ops *ops)
11651169
{
11661170
RT_ASSERT(ops);
11671171
RT_ASSERT(ops->at_connect);

components/net/at/at_socket/at_socket.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ int at_getaddrinfo(const char *nodename, const char *servname, const struct addr
129129
void at_freeaddrinfo(struct addrinfo *ai);
130130

131131
struct at_socket *at_get_socket(int socket);
132-
void at_scoket_device_register(const struct at_device_ops *ops);
132+
void at_socket_device_register(const struct at_device_ops *ops);
133133

134134
#ifndef RT_USING_SAL
135135

0 commit comments

Comments
 (0)