From 8058456c1cb57237ba16c4274ee57a5769db224a Mon Sep 17 00:00:00 2001 From: payton Date: Fri, 5 Jan 2024 21:09:34 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=B0=83=E6=95=B4=E6=89=93=E5=8D=B0=E5=92=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96usb=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/source/sf_app/code/source/app/sf_service.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/application/source/sf_app/code/source/app/sf_service.c b/code/application/source/sf_app/code/source/app/sf_service.c index 0604af114..0768909ee 100755 --- a/code/application/source/sf_app/code/source/app/sf_service.c +++ b/code/application/source/sf_app/code/source/app/sf_service.c @@ -91,15 +91,17 @@ SINT32 app_ttyusb_IsOpen(void) { UINT8 i = 0; - for (i = 0; i < 40; i++) { + for (i = 0; i < 150; i++) { if (access("/dev/ttyUSB2", F_OK) == SF_SUCCESS) { printf("tty usb ko exist!\r\n"); + printf("4G Init OK\r\n"); break; } else { usleep(100 * 1000); - if(39 == i) + if(149 == i) { MLOGE("NO ttyUSB dev!!\n"); + printf("4G Init ERR\r\n"); } } } @@ -119,6 +121,7 @@ SINT32 app_ttyusb_IsOpen(void) { { MLOGE("-------ttyUSB retry init fail!\n"); s32ret = SF_TTY_ERROR_OPEN; + printf("4G Init Fail, retry\r\n"); break; } }