mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-24 12:33:35 +08:00
修改at_client.c 传入参数timeout单位是ms,此处需要转换为tick
This commit is contained in:
@@ -363,7 +363,7 @@ int at_client_obj_wait_connect(at_client_t client, rt_uint32_t timeout)
|
|||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
/* Check whether it is timeout */
|
/* 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);
|
LOG_E("wait connect timeout (%d millisecond)!", timeout);
|
||||||
result = -RT_ETIMEOUT;
|
result = -RT_ETIMEOUT;
|
||||||
|
|||||||
Reference in New Issue
Block a user