antenna: Fix the operator in UniformPlannarArray (>= instead of >)

This commit is contained in:
Biljana Bojovic
2024-02-02 17:41:57 +01:00
parent f19e1929fa
commit 2c86bc6ee9

View File

@@ -359,7 +359,7 @@ UniformPlanarArray::ArrayIndexFromPortIndex(uint16_t portIndex, uint16_t subElem
auto firstPolPortIdx = portIndex;
auto polarizationOffset = 0;
auto arraySize = GetNumHorizontalPorts() * GetNumVerticalPorts();
if (firstPolPortIdx > arraySize)
if (firstPolPortIdx >= arraySize)
{
firstPolPortIdx = portIndex - arraySize;
polarizationOffset = GetNumColumns() * GetNumRows();