summaryrefslogtreecommitdiff
path: root/components/net
diff options
context:
space:
mode:
authorslyant <[email protected]>2018-10-18 21:01:27 +0800
committerslyant <[email protected]>2018-10-18 21:01:30 +0800
commita6b51ada1eb1b3d869e55cb7b1901bdde694752f (patch)
treed7406922731a9b66f401906df94b4024b70b37bf /components/net
parentce2313d2d33ea28ba6d4213f97726a77e0d1bc75 (diff)
修改at_client.c 传入参数timeout单位是ms,此处需要转换为tick
Diffstat (limited to 'components/net')
-rw-r--r--components/net/at/src/at_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net/at/src/at_client.c b/components/net/at/src/at_client.c
index 9cdc7ec3d1..1f6ed66743 100644
--- a/components/net/at/src/at_client.c
+++ b/components/net/at/src/at_client.c
@@ -363,7 +363,7 @@ int at_client_obj_wait_connect(at_client_t client, rt_uint32_t timeout)
while (1)
{
/* Check whether it is timeout */
- if (rt_tick_get() - start_time > timeout)
+ if (rt_tick_get() - start_time > rt_tick_from_millisecond(timeout))
{
LOG_E("wait connect timeout (%d millisecond)!", timeout);
result = -RT_ETIMEOUT;