1.去掉一些不要的函数,影响阅读
This commit is contained in:
parent
c438084cd6
commit
b178e21a4b
|
@ -44,55 +44,9 @@
|
||||||
#include "UIInfo/UIInfo.h"
|
#include "UIInfo/UIInfo.h"
|
||||||
#include <FileSysTsk.h>
|
#include <FileSysTsk.h>
|
||||||
|
|
||||||
static BOOL IsCardFull = FALSE;
|
|
||||||
SF_CALLBACK_SD_CMD g_fpSd_Exist_CB = NULL;
|
SF_CALLBACK_SD_CMD g_fpSd_Exist_CB = NULL;
|
||||||
static SF_MSG_FORMAT_SD_E formatSD = CMD_FORMAT_SD_ERR;
|
static int formatSD = CMD_FORMAT_SD_ERR;
|
||||||
|
|
||||||
BOOL sf_is_card_full(void)
|
|
||||||
{
|
|
||||||
//printf("[%s]:%d IsCardFull:%d\n", __FUNCTION__, __LINE__, IsCardFull);
|
|
||||||
return IsCardFull;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
UINT32 sf_check_card_full(void)
|
|
||||||
{
|
|
||||||
UINT64 diskFree = 0;
|
|
||||||
UINT32 ret = 0;
|
|
||||||
|
|
||||||
UIMenuStoreInfo *puiPara = sf_ui_para_get();
|
|
||||||
if(!sf_in_card_exist())
|
|
||||||
{
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
/*check disk free size*/
|
|
||||||
diskFree = FileSys_GetDiskInfo(FST_INFO_FREE_SPACE);
|
|
||||||
diskFree = diskFree/1024;
|
|
||||||
|
|
||||||
if(diskFree < 30) /* 30MB */
|
|
||||||
{
|
|
||||||
ret = TRUE;
|
|
||||||
if(0 == puiPara->SdLoopSwitch)
|
|
||||||
{
|
|
||||||
IsCardFull = TRUE;
|
|
||||||
SF_MESSAGE_BUF_S stMessageBuf = {0};
|
|
||||||
|
|
||||||
stMessageBuf.arg1 = CMD_SD_FULL;
|
|
||||||
stMessageBuf.cmdId = CMD_SD;
|
|
||||||
sf_com_message_send_to_app(&stMessageBuf);
|
|
||||||
}
|
|
||||||
printf("%s:%d sd card is full diskFree=%d\r\n",__FUNCTION__,__LINE__,diskFree);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ret = FALSE;
|
|
||||||
printf("%s:%d sd card no full diskFree=%d\r\n",__FUNCTION__,__LINE__,diskFree);
|
|
||||||
}
|
|
||||||
printf("%s:%d sd card diskFree(%d)\r\n",__FUNCTION__,__LINE__,diskFree);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
void sf_sd_exist_reg_cb(SF_CALLBACK_SD_CMD fpCB)
|
void sf_sd_exist_reg_cb(SF_CALLBACK_SD_CMD fpCB)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user