1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-27 07:16:48 -04:00

MIMO: removed enable flag in main window and rely on the DSP engine as a unique information source instead

This commit is contained in:
f4exb 2019-05-20 01:25:35 +02:00
parent ad4827f36c
commit 8fd864aadf
2 changed files with 1 additions and 4 deletions

View File

@ -221,8 +221,6 @@ MainWindow::MainWindow(qtwebapp::LoggerWithFile *logger, const MainParser& parse
qWarning("MainWindow::MainWindow: could not register resource file %s/%s", qPrintable(applicationDirPath), "sdrbase.rcc"); qWarning("MainWindow::MainWindow: could not register resource file %s/%s", qPrintable(applicationDirPath), "sdrbase.rcc");
} }
m_mimoEnabled = parser.getMIMOSupport();
m_apiAdapter = new WebAPIAdapterGUI(*this); m_apiAdapter = new WebAPIAdapterGUI(*this);
m_requestMapper = new WebAPIRequestMapper(this); m_requestMapper = new WebAPIRequestMapper(this);
m_requestMapper->setAdapter(m_apiAdapter); m_requestMapper->setAdapter(m_apiAdapter);
@ -1914,7 +1912,7 @@ void MainWindow::on_action_addSinkDevice_triggered()
void MainWindow::on_action_addMIMODevice_triggered() void MainWindow::on_action_addMIMODevice_triggered()
{ {
if (m_mimoEnabled) { if (m_dspEngine->getMIMOSupport()) {
addMIMODevice(); addMIMODevice();
} else { } else {
QMessageBox::information(this, tr("Message"), tr("MIMO operation not supported yet")); QMessageBox::information(this, tr("Message"), tr("MIMO operation not supported yet"));

View File

@ -330,7 +330,6 @@ private:
WebAPIAdapterGUI *m_apiAdapter; WebAPIAdapterGUI *m_apiAdapter;
QString m_apiHost; QString m_apiHost;
int m_apiPort; int m_apiPort;
bool m_mimoEnabled;
CommandKeyReceiver *m_commandKeyReceiver; CommandKeyReceiver *m_commandKeyReceiver;