解决通讯超限问题

This commit is contained in:
王绪洁 2025-02-28 13:31:34 +08:00
parent 26a0e48da3
commit 2b5868bfff
2 changed files with 8 additions and 2 deletions

View File

@ -265,6 +265,11 @@
<WinNumber>1</WinNumber>
<ItemText>ip_addr</ItemText>
</Ww>
<Ww>
<count>23</count>
<WinNumber>1</WinNumber>
<ItemText>tcp_rx_data</ItemText>
</Ww>
</WatchWindow1>
<MemoryWindow1>
<Mm>
@ -1908,7 +1913,7 @@
<Group>
<GroupName>User/application</GroupName>
<tvExp>0</tvExp>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>

View File

@ -209,8 +209,9 @@ static err_t tcpecho_recv_control(void *arg, struct tcp_pcb *tpcb, struct pbuf *
/*2. 判断所要执行的操作 读或写指令*/
/*3. 对要发送的数据进行校验,组包,返回数据*/
pbuf_free(p);
}
pbuf_free(p);
}
else if (err == ERR_OK) // 检测到对方主动关闭连接时也会调用recv函数此时p为空
{