Skip to content

Commit

Permalink
Fixed frame channel mapping for RX apertures < 32 elements.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjarosik committed Dec 23, 2021
1 parent df01eb5 commit b042ba8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arrus/core/devices/us4r/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ splitRxAperturesIfNecessary(const std::vector<TxRxParamsSequence> &seqs,
}
}
}
if(us4oemIdx == 0) {
if(seqIdx == 0) {
// NOTE: for us4OEM:0, even if it is RX nop, the results of this
// rx NOP will be transferred from us4OEM to host memory,
// to get the frame metadata.
maxSubapertureIdx = max((ChannelIdx)1, maxSubapertureIdx);
maxSubapertureIdx = std::max((ChannelIdx)1, maxSubapertureIdx);
}
currentFrameIdx[seqIdx] += maxSubapertureIdx;
}
Expand All @@ -210,4 +210,4 @@ splitRxAperturesIfNecessary(const std::vector<TxRxParamsSequence> &seqs,
return std::make_tuple(result, opDestOp, opDestChannel);
}

}
}

0 comments on commit b042ba8

Please sign in to comment.