1.修改sd卡循环
This commit is contained in:
parent
c28e5f1602
commit
1c91a9bfe6
|
@ -2520,6 +2520,8 @@ SINT32 sf_power_off_check_format_sd(void)
|
||||||
SINT32 sf_power_off_check_sd(void)
|
SINT32 sf_power_off_check_sd(void)
|
||||||
{
|
{
|
||||||
UIMenuStoreInfo *puiPara = sf_app_ui_para_get();
|
UIMenuStoreInfo *puiPara = sf_app_ui_para_get();
|
||||||
|
SF_STORE_ATTR_S storeattrs = {0};
|
||||||
|
|
||||||
/******************** SD cycle *************************/
|
/******************** SD cycle *************************/
|
||||||
if((sf_in_card_exist() && (sf_is_card())) || (sf_get_mode_flag() == 1))
|
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()))
|
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())
|
if(sf_in_card_exist())
|
||||||
|
|
|
@ -279,12 +279,12 @@ SINT32 sf_sd_loopremove(const char *path)
|
||||||
|
|
||||||
if(strstr(filetype, SF_DCF_EXT_MOV))
|
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))
|
if(SF_SUCCESS == sd_file_Isexsit(fname))
|
||||||
{
|
{
|
||||||
sf_file_remove(fname);
|
sf_file_remove(fname);
|
||||||
MLOGD("Will Delete video sub File Name:%s\n", fname);
|
MLOGD("Will Delete video sub File Name:%s\n", fname);
|
||||||
}
|
}*/
|
||||||
sprintf(fname, "%sS%s%s.JPG", SF_SEND_LIST_DIR,filedir, filenum);
|
sprintf(fname, "%sS%s%s.JPG", SF_SEND_LIST_DIR,filedir, filenum);
|
||||||
if(SF_SUCCESS == sd_file_Isexsit(fname))
|
if(SF_SUCCESS == sd_file_Isexsit(fname))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user