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

BladeRF output: fix open channel indicators array initialization so that SO Tx starts correctly

This commit is contained in:
f4exb 2018-09-30 07:34:47 +02:00
parent 2df27958b3
commit b0d17193d6

View File

@ -16,6 +16,7 @@
#include <cstdio> #include <cstdio>
#include <cstring> #include <cstring>
#include <algorithm>
#include <QtGlobal> #include <QtGlobal>
@ -75,6 +76,8 @@ bool DeviceBladeRF2::open(const char *serial)
m_rxOpen = new bool[m_nbRxChannels]; m_rxOpen = new bool[m_nbRxChannels];
m_txOpen = new bool[m_nbTxChannels]; m_txOpen = new bool[m_nbTxChannels];
std::fill(m_rxOpen, m_rxOpen + m_nbRxChannels, false);
std::fill(m_txOpen, m_txOpen + m_nbTxChannels, false);
return true; return true;
} }