*bugfix: ommit extra event trigger
This commit is contained in:
@@ -1137,6 +1137,7 @@ static int32_t Linklayer_Routine(L2_INST *instPtr)
|
|||||||
L2_IterEditNode(instPtr->nodeList, &increment, IntcNodeTTL);
|
L2_IterEditNode(instPtr->nodeList, &increment, IntcNodeTTL);
|
||||||
|
|
||||||
#ifdef DATALINK_ENABLE_AUTORECONNECT
|
#ifdef DATALINK_ENABLE_AUTORECONNECT
|
||||||
|
if(L2_GetMainState(instPtr) != L2_INIT_STATE){
|
||||||
L2_IterDeleteNode(instPtr->nodeList, IsNodeConnected);
|
L2_IterDeleteNode(instPtr->nodeList, IsNodeConnected);
|
||||||
if (L2_GetNodeListLen(instPtr->nodeList) < instPtr->config.netScale - 1)
|
if (L2_GetNodeListLen(instPtr->nodeList) < instPtr->config.netScale - 1)
|
||||||
{
|
{
|
||||||
@@ -1147,6 +1148,7 @@ static int32_t Linklayer_Routine(L2_INST *instPtr)
|
|||||||
l2Event.msg = NULL;
|
l2Event.msg = NULL;
|
||||||
AssertL2Event(instPtr, &l2Event);
|
AssertL2Event(instPtr, &l2Event);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user