1.存储器检测修改
This commit is contained in:
parent
93b190782a
commit
a02f22e2a5
|
@ -2347,6 +2347,10 @@ static int sf_is_sdc_mounted(void)
|
|||
fclose(file);
|
||||
return 1;
|
||||
}
|
||||
if (strstr(line, "/dev/mmcblk1p1") != NULL) {
|
||||
fclose(file);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
fclose(file);
|
||||
|
@ -2356,11 +2360,11 @@ int sf_check_sd(void)
|
|||
{
|
||||
UINT8 i = 0;
|
||||
int ret = SF_SUCCESS;
|
||||
if(0 == sf_in_card_exist())
|
||||
{
|
||||
NET_SLOGE("NO SD\r\n");
|
||||
return SF_FAILURE;
|
||||
}
|
||||
// if(0 == sf_in_card_exist())
|
||||
// {
|
||||
// NET_SLOGE("NO SD\r\n");
|
||||
// return SF_FAILURE;
|
||||
// }
|
||||
if (sf_sd_status_get() != SF_SD_OK) {
|
||||
ret = SF_FAILURE;
|
||||
for (i = 0; i < 20; i++)
|
||||
|
|
Loading…
Reference in New Issue
Block a user