【修改】ESP8266 发送 AT 确定模块启动成功改为延时等待启动成功

Signed-off-by: chenyong <1521761801@qq.com>
This commit is contained in:
chenyong 2018-08-29 18:22:22 +08:00
parent fe97c0f6c4
commit 51a05a579d
1 changed files with 1 additions and 5 deletions

View File

@ -553,11 +553,7 @@ static void esp8266_init_thread_entry(void *parameter)
goto __exit; goto __exit;
} }
if (at_client_wait_connect(ESP8266_WAIT_CONNECT_TIME)) rt_thread_delay(rt_tick_from_millisecond(5000));
{
result = -RT_ETIMEOUT;
goto __exit;
}
/* reset module */ /* reset module */
AT_SEND_CMD(resp, "AT+RST"); AT_SEND_CMD(resp, "AT+RST");
/* reset waiting delay */ /* reset waiting delay */