重发次数不允许超过5次

This commit is contained in:
cdyong 2015-12-22 07:37:32 +00:00
parent 5d35df14c5
commit e10c095b3d
1 changed files with 2 additions and 1 deletions

View File

@ -664,6 +664,7 @@ void TinyController::Loop()
3
40
5
65
*/
int count = 0;
@ -683,7 +684,7 @@ void TinyController::Loop()
ulong now = Sys.Ms();
// 已过期则删除
if(node.EndTime < now)
if(node.EndTime < now||node.Times > 5)
{
if(!reply) msg_printf("消息过期 Dest=0x%02X Seq=0x%02X Times=%d\r\n", node.Data[0], node.Seq, node.Times);
node.Using = 0;