summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-10-19 19:09:32 +0800
committerGitHub <[email protected]>2018-10-19 19:09:32 +0800
commit2ae638e22d62f231bc59ade5f4e4e42f43f8d9a3 (patch)
treeaed4bb260733b5c8373f3e1645201156a6cf30b9 /components
parent1699a12b15fe20ac67cce82ad2b303701de50d81 (diff)
parenta6b51ada1eb1b3d869e55cb7b1901bdde694752f (diff)
Merge pull request #1909 from slyant/mydev-change
修改at_client.c 传入参数timeout单位是ms,此处需要转换为tick
Diffstat (limited to 'components')
-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;