feat: 修改聆听建网逻辑, 增加建网帧接收控制
This commit is contained in:
@@ -407,9 +407,13 @@ int32_t Phy_SetAntIndex(PHY_INST *instPtr, PHY_ANT_INDEX antIndex)
|
||||
return EPARAM;
|
||||
}
|
||||
DBG_INFO("Set new antenna index: %" PRId8 "\n", antIndex);
|
||||
instPtr->antIndex.next = antIndex;
|
||||
Phy_SetTxAntIndex(instPtr, antIndex);
|
||||
Phy_SetRxAntIndex(instPtr, antIndex);
|
||||
|
||||
instPtr->antIndex.last = instPtr->antIndex.curr;
|
||||
instPtr->antIndex.curr = instPtr->antIndex.next;
|
||||
instPtr->antIndex.next = antIndex;
|
||||
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
@@ -424,4 +428,4 @@ inline size_t Phy_GetNextAntIndex(PHY_INST *instPtr)
|
||||
|
||||
/** @} PhysicalLayer_AntennaControl*/
|
||||
|
||||
/** @} PhysicalLayer*/
|
||||
/** @} PhysicalLayer*/
|
||||
|
||||
Reference in New Issue
Block a user