*bugfix: ommit extra event trigger

This commit is contained in:
Gatsby Van
2024-03-06 20:01:34 +08:00
parent 3073a2767b
commit 582cbd57af
@@ -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;
}