From 46909f24f1eb6bffeff44a66d21770ff78ef07c7 Mon Sep 17 00:00:00 2001 From: payton Date: Wed, 21 Feb 2024 10:29:08 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=97=A0emmc=E6=97=B6mount=E5=8D=A1=E5=A4=AA?= =?UTF-8?q?=E6=85=A2=EF=BC=8C=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=BA=9Bcnt?= =?UTF-8?q?=E7=AD=89=E5=BE=85?= 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, 3 insertions(+), 4 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 61b6a6d0c..c9abf4497 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 @@ -2586,7 +2586,7 @@ int sf_check_sd(void) } if (sf_activity_status_get() != SF_SD_OK) { ret = SF_FAILURE; - for (i = 0; i < 20; i++) + for (i = 0; i < 100; i++) { if (SF_SD_OK == sf_activity_status_get()) { @@ -2599,7 +2599,7 @@ int sf_check_sd(void) { if (1 == sf_is_sdc_mounted()) { - if(cnt > 3) + if(cnt > 80) { ret = SF_SUCCESS; MLOGI("mounted SD\r\n"); @@ -2608,8 +2608,7 @@ int sf_check_sd(void) } cnt++; } - sleep(1); - + sf_sleep_ms(200); } } flag = 1;