1.修改可能出现漏发送问题

This commit is contained in:
payton 2023-11-13 15:42:19 +08:00
parent 65ccdbc3fb
commit d1ce4e56c5
2 changed files with 16 additions and 16 deletions

View File

@ -2403,7 +2403,7 @@ SINT32 sf_module_complete_init(void)
SLOGD(" s\n");
//needRecordLogFlag = 1;
puiPara->NetGeneration = SF_NET_NO;
//puiPara->NetGeneration = SF_NET_NO;
sf_gsm_para_buff_clear();
while(sf_app_while_flag())
@ -3996,7 +3996,7 @@ SINT32 sf_auto_net_reg(void)
SF_LOG(" s\n");
//needRecordLogFlag = 1;
puiPara->NetGeneration = 0;
//puiPara->NetGeneration = 0;
sf_gsm_para_buff_clear();

View File

@ -920,20 +920,20 @@ SINT32 sf_pic_send_ftp(void)
}
piccount = pThumbFileCfg->filecnt;
if(4 == pPara->NetGeneration)
{
if(piccount >= 2)
{
piccount = ((pPara->SendPicSize == 2) ? 2 : piccount);
}
}
else
{
if(piccount >= 1)
{
piccount = 1;
}
}
// if(4 == pPara->NetGeneration)
// {
// if(piccount >= 2)
// {
// piccount = ((pPara->SendPicSize == 2) ? 2 : piccount);
// }
// }
// else
// {
// if(piccount >= 1)
// {
// piccount = 1;
// }
// }
MLOGI("NetGeneration:%dG,tempPicSize=%d,piccount=%d,filecnt=%d\n", pPara->NetGeneration, tempPicSize, piccount, pThumbFileCfg->filecnt);
//printf("[%s:%d]piccount=%d\n", __FUNCTION__, __LINE__, piccount);