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
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,7 @@
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <QtGlobal>
@ -75,6 +76,8 @@ bool DeviceBladeRF2::open(const char *serial)
m_rxOpen = new bool[m_nbRxChannels];
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;
}