提交 85badcbf 编写于 作者: S ssy

Signed-off-by:shuisiyuan<shuisiyuan@huawei.com>

Signed-off-by: Nssy <shuisiyuan@huawei.com>
上级 f711bc52
......@@ -17,9 +17,6 @@
#include "ohos_types.h"
#include "wifi_device.h"
#include "wifi_hotspot.h"
#include "lwip/netif.h"
#include "lwip/netifapi.h"
#include "lwip/ip4_addr.h"
#include "cmsis_os2.h"
#include <unistd.h>
......@@ -188,7 +185,7 @@ static void WaitScanResult(void)
{
int scanTimeout = DEF_TIMEOUT;
while (scanTimeout > 0) {
sleep(ONE_SECOND);
osDelay(ONE_SECOND);
scanTimeout--;
if (g_staScanSuccess == 1) {
printf("WaitScanResult:wait success[%d]s\n", (DEF_TIMEOUT - scanTimeout));
......@@ -525,7 +522,7 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testEnableDisableHotSpot, Function | Me
int timeout = 3;
g_apEnableSuccess = 0;
while (timeout > 0) {
sleep(ONE_SECOND);
osDelay(ONE_SECOND);
timeout--;
if (g_apEnableSuccess >= 1) {
printf("Wait %d seconds.\n", (DEF_TIMEOUT - timeout));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册