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);