From 342d8d25f66affb0ee46af4accb76c141fb44720 Mon Sep 17 00:00:00 2001 From: f4exb Date: Tue, 29 Oct 2019 14:04:08 +0100 Subject: [PATCH] BeamSteeringCWSource: use auto amount in-place write method in sample FIFO --- .../channelmimo/beamsteeringcwmod/beamsteeringcwmodsource.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/channelmimo/beamsteeringcwmod/beamsteeringcwmodsource.cpp b/plugins/channelmimo/beamsteeringcwmod/beamsteeringcwmodsource.cpp index a0eb1b295..e76e8b7c3 100644 --- a/plugins/channelmimo/beamsteeringcwmod/beamsteeringcwmodsource.cpp +++ b/plugins/channelmimo/beamsteeringcwmod/beamsteeringcwmodsource.cpp @@ -144,7 +144,7 @@ void BeamSteeringCWModSource::handleData() while ((remainder > 0) && (m_inputMessageQueue.size() == 0)) { - m_sampleMOFifo.writeSync(remainder, ipart1begin, ipart1end, ipart2begin, ipart2end); + m_sampleMOFifo.writeSync(ipart1begin, ipart1end, ipart2begin, ipart2end); if (ipart1begin != ipart1end) { // first part of FIFO data processFifo(data, ipart1begin, ipart1end); @@ -154,7 +154,6 @@ void BeamSteeringCWModSource::handleData() processFifo(data, ipart2begin, ipart2end); } - m_sampleMOFifo.commitWriteSync(remainder); remainder = m_sampleMOFifo.remainderSync(); } }