1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-12-01 12:23:55 -05:00

BeamSteeringCWSource: use auto amount in-place write method in sample FIFO

This commit is contained in:
f4exb 2019-10-29 14:04:08 +01:00
parent 8685cec6c1
commit 342d8d25f6

View File

@ -144,7 +144,7 @@ void BeamSteeringCWModSource::handleData()
while ((remainder > 0) && (m_inputMessageQueue.size() == 0)) 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 if (ipart1begin != ipart1end) { // first part of FIFO data
processFifo(data, ipart1begin, ipart1end); processFifo(data, ipart1begin, ipart1end);
@ -154,7 +154,6 @@ void BeamSteeringCWModSource::handleData()
processFifo(data, ipart2begin, ipart2end); processFifo(data, ipart2begin, ipart2end);
} }
m_sampleMOFifo.commitWriteSync(remainder);
remainder = m_sampleMOFifo.remainderSync(); remainder = m_sampleMOFifo.remainderSync();
} }
} }