修改rtos编译失败问题
This commit is contained in:
parent
1ccde70aa2
commit
04ffffa004
|
@ -38,6 +38,7 @@
|
||||||
#include "PrjCfg.h"
|
#include "PrjCfg.h"
|
||||||
#include "sf_battery.h"
|
#include "sf_battery.h"
|
||||||
#include <IOCfg.h>
|
#include <IOCfg.h>
|
||||||
|
#include <sf_sd_common.h>
|
||||||
static UINT8 McuSubVersion = 0;
|
static UINT8 McuSubVersion = 0;
|
||||||
static UINT16 McuVersion = 0;
|
static UINT16 McuVersion = 0;
|
||||||
static UINT8 DailyReportStartMode = 0;
|
static UINT8 DailyReportStartMode = 0;
|
||||||
|
@ -2172,21 +2173,21 @@ void sf_file_thumb_cfg_sava(void)
|
||||||
INT32 ret_fs = 0;
|
INT32 ret_fs = 0;
|
||||||
FST_FILE_STATUS FileStat;
|
FST_FILE_STATUS FileStat;
|
||||||
UIMenuStoreInfo *puiPara = sf_ui_para_get();
|
UIMenuStoreInfo *puiPara = sf_ui_para_get();
|
||||||
#if USE_MMC_DEV_CHECK
|
|
||||||
|
|
||||||
SF_ST_MMC_DEV *mmc_dev = SF_GetMMCDev();
|
|
||||||
if(mmc_dev == NULL)
|
|
||||||
{
|
|
||||||
DBG_ERR("No MMC_Dev Can use!\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if(mmc_dev->dcf_handle < 0)
|
|
||||||
{
|
|
||||||
DBG_ERR("dcf_handle err!\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
#if USE_RTOS_MMC_CHECK
|
||||||
|
SF_RTOS_ST_MMC_DEV *mmc_dev = SF_RtosStrgCheckWorkableDev();
|
||||||
|
if(mmc_dev ==NULL)
|
||||||
|
{
|
||||||
|
DBG_ERR("No MMC_Dev Can use!\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(mmc_dev->dcf_handle < 0)
|
||||||
|
{
|
||||||
|
DBG_ERR("dcf_handle err\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (pThumbFileCfg != NULL) {
|
if (pThumbFileCfg != NULL) {
|
||||||
|
|
||||||
char sendListName[64] = {0};
|
char sendListName[64] = {0};
|
||||||
|
@ -2199,7 +2200,7 @@ void sf_file_thumb_cfg_sava(void)
|
||||||
char tmp[64] = {'\0'};
|
char tmp[64] = {'\0'};
|
||||||
INT32 uiStatus = 0;
|
INT32 uiStatus = 0;
|
||||||
UINT8 ucAttrib = 0;
|
UINT8 ucAttrib = 0;
|
||||||
#if USE_MMC_DEV_CHECK
|
#if USE_RTOS_MMC_CHECK
|
||||||
if(mmc_dev->dev_type == MMC_DEV_SD)
|
if(mmc_dev->dev_type == MMC_DEV_SD)
|
||||||
{
|
{
|
||||||
snprintf(tmp, sizeof(tmp), "%c%s", 'A', PHOTO_THUMB_PATH);
|
snprintf(tmp, sizeof(tmp), "%c%s", 'A', PHOTO_THUMB_PATH);
|
||||||
|
@ -2220,7 +2221,7 @@ void sf_file_thumb_cfg_sava(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_MMC_DEV_CHECK
|
#if USE_RTOS_MMC_CHECK
|
||||||
if(mmc_dev->dev_type == MMC_DEV_SD)
|
if(mmc_dev->dev_type == MMC_DEV_SD)
|
||||||
{
|
{
|
||||||
if(0 == puiPara->SendType){
|
if(0 == puiPara->SendType){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user