1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 09:48:45 -05:00

BladeRF2 input: fixed read size in MI mode

This commit is contained in:
f4exb 2018-09-30 00:21:24 +02:00
parent 53ff8f32bf
commit b13b2040c4

View File

@ -92,7 +92,11 @@ void BladeRF2InputThread::run()
qDebug("BladeRF2InputThread::run: start running loop");
while (m_running)
{
res = bladerf_sync_rx(m_dev, m_buf, DeviceBladeRF2::blockSize, NULL, 10000);
if (m_nbChannels > 1) {
res = bladerf_sync_rx(m_dev, m_buf, DeviceBladeRF2::blockSize*m_nbChannels, NULL, 10000);
} else {
res = bladerf_sync_rx(m_dev, m_buf, DeviceBladeRF2::blockSize, NULL, 10000);
}
if (res < 0)
{