1.sd卡警告信息修复

This commit is contained in:
payton 2024-01-20 15:52:03 +08:00
parent a061e9e79c
commit ed5badd296

View File

@ -2736,9 +2736,15 @@ SINT32 sf_power_off_check_sd(void)
}
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);
}
}