forked from gatsby/df_datalink
*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);
|
||||
|
||||
#ifdef DATALINK_ENABLE_AUTORECONNECT
|
||||
if(L2_GetMainState(instPtr) != L2_INIT_STATE){
|
||||
L2_IterDeleteNode(instPtr->nodeList, IsNodeConnected);
|
||||
if (L2_GetNodeListLen(instPtr->nodeList) < instPtr->config.netScale - 1)
|
||||
{
|
||||
@@ -1147,6 +1148,7 @@ static int32_t Linklayer_Routine(L2_INST *instPtr)
|
||||
l2Event.msg = NULL;
|
||||
AssertL2Event(instPtr, &l2Event);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return Status;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user