1.sd卡警告信息修复
This commit is contained in:
parent
a061e9e79c
commit
ed5badd296
|
@ -2736,9 +2736,15 @@ SINT32 sf_power_off_check_sd(void)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(puiPara->SdFailCount)
|
if((!sf_in_card_exist()) || (SDstoreattrs.SDFree < 30))
|
||||||
{
|
{
|
||||||
puiPara->SdFailCount = 0;
|
if((startup == SF_MCU_STARTUP_TIMELAPSE) || (startup == SF_MCU_STARTUP_PIR) || (startup == SF_MCU_STARTUP_BATCH_SEND))
|
||||||
|
{
|
||||||
|
puiPara->SdFailCount++;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
puiPara->SdFailCount = 0;
|
||||||
|
}
|
||||||
sf_sleep_ms(100);
|
sf_sleep_ms(100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user