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

pull/228/head
f4exb 2018-09-30 07:34:47 +02:00
rodzic 2df27958b3
commit b0d17193d6
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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;
}