From 0ea35e21188b20eb0abcdee7186b9ac9e21f3dda Mon Sep 17 00:00:00 2001 From: payton Date: Mon, 8 Jan 2024 16:14:42 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9WiFi=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E5=AE=95=E6=9C=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../source/sf_app/code/source/storeMng/sf_storeMng.c | 5 +++++ .../source/sf_app/code/source/wifi/sf_wifi_svr.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/code/application/source/sf_app/code/source/storeMng/sf_storeMng.c b/code/application/source/sf_app/code/source/storeMng/sf_storeMng.c index b106a27e9..4f90c6244 100644 --- a/code/application/source/sf_app/code/source/storeMng/sf_storeMng.c +++ b/code/application/source/sf_app/code/source/storeMng/sf_storeMng.c @@ -60,6 +60,11 @@ void sf_strg_dev_register(SINT32 dev_id, SINT32 mounted) MMC_DEV_TYPE sf_get_strg_dev(void) { + if(sf_strg_dev == NULL) + { + MLOGI("err\n"); + return MMC_DEV_EMMC; + } return sf_strg_dev->dev_type; } diff --git a/code/application/source/sf_app/code/source/wifi/sf_wifi_svr.c b/code/application/source/sf_app/code/source/wifi/sf_wifi_svr.c index 90815ec55..159ee6714 100755 --- a/code/application/source/sf_app/code/source/wifi/sf_wifi_svr.c +++ b/code/application/source/sf_app/code/source/wifi/sf_wifi_svr.c @@ -430,8 +430,8 @@ S8 *appThumbKeyToName(thumbSize_t imgSize, thumbType_t fileType, UINT16 dirKey, free(strg_path); return SF_FAILURE; } - - char font =sf_get_strg_dev() == MMC_DEV_EMMC ? 'B' : 'E'; + MLOGI("s1\n"); + char font =sf_get_strg_dev() == MMC_DEV_EMMC ? 'B' : 'A'; if(imgSize == THUMB_320x240) { @@ -1142,7 +1142,7 @@ SINT32 sf_svr_packet_proc(SINT32 fd, UINT8 *pAppData, UINT16 dataLen) free(strg_path); return SF_FAILURE; } - + MLOGI("s1\n"); char *dcf_file = sf_get_strg_dev() == MMC_DEV_EMMC ? "SYBX" : "SYEX"; //printf("[sf_svr_packet_proc]dataLen: %d\n",dataLen);