diff --git a/arrus/core/devices/us4r/common.cpp b/arrus/core/devices/us4r/common.cpp index 77e8306b3..fb3008608 100644 --- a/arrus/core/devices/us4r/common.cpp +++ b/arrus/core/devices/us4r/common.cpp @@ -185,7 +185,7 @@ splitRxAperturesIfNecessary(const std::vector &seqs, // 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 = std::max((ChannelIdx)1, maxSubapertureIdx); + maxSubapertureIdx = (std::max)((ChannelIdx)1, maxSubapertureIdx); } currentFrameIdx[seqIdx] += maxSubapertureIdx; }