1.sd卡和qlog调整
This commit is contained in:
parent
718af0e9ea
commit
e0212e4146
|
@ -158,12 +158,6 @@ SF_BOOL app_disconnect_4g_module(void) {
|
||||||
#if SF_QLOG_ENABLE
|
#if SF_QLOG_ENABLE
|
||||||
static SINT16 app_Qlog_procress(void) {
|
static SINT16 app_Qlog_procress(void) {
|
||||||
SINT16 s32ret = SF_SUCCESS;
|
SINT16 s32ret = SF_SUCCESS;
|
||||||
char *file_path = sf_root_path_strcat(QLOG_PATH);
|
|
||||||
if(file_path == NULL)
|
|
||||||
{
|
|
||||||
free(file_path);
|
|
||||||
return SF_FAILURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
char qlogPath[128] = {0};
|
char qlogPath[128] = {0};
|
||||||
char qlogDirCmd[128] = {0};
|
char qlogDirCmd[128] = {0};
|
||||||
|
@ -172,10 +166,14 @@ static SINT16 app_Qlog_procress(void) {
|
||||||
if(SF_FAILURE == sf_check_sd())
|
if(SF_FAILURE == sf_check_sd())
|
||||||
{
|
{
|
||||||
MLOGE("ERROR sf_check_sd\n");
|
MLOGE("ERROR sf_check_sd\n");
|
||||||
|
return SF_FAILURE;
|
||||||
|
}
|
||||||
|
char *file_path = sf_root_path_strcat(QLOG_PATH);
|
||||||
|
if(file_path == NULL)
|
||||||
|
{
|
||||||
free(file_path);
|
free(file_path);
|
||||||
return SF_FAILURE;
|
return SF_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
time(&timep);
|
time(&timep);
|
||||||
p = gmtime(&timep);
|
p = gmtime(&timep);
|
||||||
if (access(file_path, F_OK) != 0) {
|
if (access(file_path, F_OK) != 0) {
|
||||||
|
@ -2417,6 +2415,7 @@ int sf_check_sd(void)
|
||||||
{
|
{
|
||||||
UINT8 i = 0;
|
UINT8 i = 0;
|
||||||
int ret = SF_SUCCESS;
|
int ret = SF_SUCCESS;
|
||||||
|
int cnt = 0;
|
||||||
if(0 == sf_in_card_exist() && (0 == sf_in_emmc_exist()))
|
if(0 == sf_in_card_exist() && (0 == sf_in_emmc_exist()))
|
||||||
{
|
{
|
||||||
NET_SLOGE("NO SD\r\n");
|
NET_SLOGE("NO SD\r\n");
|
||||||
|
@ -2436,12 +2435,16 @@ int sf_check_sd(void)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (1 == sf_is_sdc_mounted())
|
if (1 == sf_is_sdc_mounted())
|
||||||
|
{
|
||||||
|
if(cnt > 3)
|
||||||
{
|
{
|
||||||
ret = SF_SUCCESS;
|
ret = SF_SUCCESS;
|
||||||
MLOGI("mounted SD\r\n");
|
MLOGI("mounted SD\r\n");
|
||||||
sf_statistics_param_load(sf_statistics_param_get());
|
sf_statistics_param_load(sf_statistics_param_get());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
cnt++;
|
||||||
|
}
|
||||||
sleep(1);
|
sleep(1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user