未验证 提交 2ae638e2 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #1909 from slyant/mydev-change

修改at_client.c 传入参数timeout单位是ms,此处需要转换为tick
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册