1.无emmc时mount卡太慢,增加一些cnt等待
This commit is contained in:
parent
a0258f5cd6
commit
46909f24f1
|
@ -2586,7 +2586,7 @@ int sf_check_sd(void)
|
||||||
}
|
}
|
||||||
if (sf_activity_status_get() != SF_SD_OK) {
|
if (sf_activity_status_get() != SF_SD_OK) {
|
||||||
ret = SF_FAILURE;
|
ret = SF_FAILURE;
|
||||||
for (i = 0; i < 20; i++)
|
for (i = 0; i < 100; i++)
|
||||||
{
|
{
|
||||||
if (SF_SD_OK == sf_activity_status_get())
|
if (SF_SD_OK == sf_activity_status_get())
|
||||||
{
|
{
|
||||||
|
@ -2599,7 +2599,7 @@ int sf_check_sd(void)
|
||||||
{
|
{
|
||||||
if (1 == sf_is_sdc_mounted())
|
if (1 == sf_is_sdc_mounted())
|
||||||
{
|
{
|
||||||
if(cnt > 3)
|
if(cnt > 80)
|
||||||
{
|
{
|
||||||
ret = SF_SUCCESS;
|
ret = SF_SUCCESS;
|
||||||
MLOGI("mounted SD\r\n");
|
MLOGI("mounted SD\r\n");
|
||||||
|
@ -2608,8 +2608,7 @@ int sf_check_sd(void)
|
||||||
}
|
}
|
||||||
cnt++;
|
cnt++;
|
||||||
}
|
}
|
||||||
sleep(1);
|
sf_sleep_ms(200);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
flag = 1;
|
flag = 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user