1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-05-23 18:52:28 -04: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"); qDebug("BladeRF2InputThread::run: start running loop");
while (m_running) 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) if (res < 0)
{ {