adapted to new node list api.

This commit is contained in:
Gatsby Van
2024-01-24 11:45:42 +08:00
parent 3d9442e329
commit 0c61b112c7
@@ -1174,7 +1174,7 @@ static int32_t Linklayer_Routine(L2_INST *instPtr)
#ifdef DATALINK_ENABLE_AUTORECONNECT #ifdef DATALINK_ENABLE_AUTORECONNECT
L2_IterDeleteNode(instPtr->nodeList, IsNodeConnected); L2_IterDeleteNode(instPtr->nodeList, IsNodeConnected);
if (GetNodeNum(instPtr->nodeList) < instPtr->config.netScale - 1) if (L2_GetNodeListLen(instPtr->nodeList) < instPtr->config.netScale - 1)
{ {
// reset scan process // reset scan process
L2_EVENT l2Event; L2_EVENT l2Event;