From a02f22e2a5e094b80c53d0055cdc378cecfbf157 Mon Sep 17 00:00:00 2001 From: payton Date: Fri, 12 Jan 2024 17:46:53 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=AD=98=E5=82=A8=E5=99=A8=E6=A3=80=E6=B5=8B?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../source/sf_app/code/source/app/sf_service.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 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 5604c330e..2cac82bec 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 @@ -2347,6 +2347,10 @@ static int sf_is_sdc_mounted(void) fclose(file); return 1; } + if (strstr(line, "/dev/mmcblk1p1") != NULL) { + fclose(file); + return 1; + } } fclose(file); @@ -2356,11 +2360,11 @@ int sf_check_sd(void) { UINT8 i = 0; int ret = SF_SUCCESS; - if(0 == sf_in_card_exist()) - { - NET_SLOGE("NO SD\r\n"); - return SF_FAILURE; - } + // if(0 == sf_in_card_exist()) + // { + // NET_SLOGE("NO SD\r\n"); + // return SF_FAILURE; + // } if (sf_sd_status_get() != SF_SD_OK) { ret = SF_FAILURE; for (i = 0; i < 20; i++)