diff --git a/code/application/source/sf_app/code/source/4gMng/sf_sms.c b/code/application/source/sf_app/code/source/4gMng/sf_sms.c index 095a57e0b..f9d5496a7 100644 --- a/code/application/source/sf_app/code/source/4gMng/sf_sms.c +++ b/code/application/source/sf_app/code/source/4gMng/sf_sms.c @@ -2520,6 +2520,8 @@ SINT32 sf_power_off_check_format_sd(void) SINT32 sf_power_off_check_sd(void) { UIMenuStoreInfo *puiPara = sf_app_ui_para_get(); + SF_STORE_ATTR_S storeattrs = {0}; + /******************** SD cycle *************************/ if((sf_in_card_exist() && (sf_is_card())) || (sf_get_mode_flag() == 1)) { @@ -2528,7 +2530,9 @@ SINT32 sf_power_off_check_sd(void) if((puiPara->SdLoopSwitch) && (!sf_get_mode_flag())) { - sf_sd_loopremove(SF_DCIM_DIR); + sf_sd_info_get(&storeattrs); + if((storeattrs.SDStatus == 0) & (storeattrs.SDFree < SDLOOP_REMAIN_SPACE)) + sf_sd_loopremove(SF_DCIM_DIR); } if(sf_in_card_exist()) 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 28b36dfd8..f50c0481a 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 @@ -279,12 +279,12 @@ SINT32 sf_sd_loopremove(const char *path) if(strstr(filetype, SF_DCF_EXT_MOV)) { - sprintf(fname, "%sW%s%s.JPG",SF_SEND_LIST_DIR, filedir, filenum); + /*sprintf(fname, "%sW%s%s.JPG",SF_SEND_LIST_DIR, filedir, filenum); if(SF_SUCCESS == sd_file_Isexsit(fname)) { sf_file_remove(fname); MLOGD("Will Delete video sub File Name:%s\n", fname); - } + }*/ sprintf(fname, "%sS%s%s.JPG", SF_SEND_LIST_DIR,filedir, filenum); if(SF_SUCCESS == sd_file_Isexsit(fname)) {