1.修改sd卡循环

This commit is contained in:
payton 2023-07-11 16:49:23 +08:00
parent c28e5f1602
commit 1c91a9bfe6
2 changed files with 7 additions and 3 deletions

View File

@ -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())

View File

@ -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))
{