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

Merge pull request #1973 from mxi-box/mimo_bugfix

Fix MIMO GUI bugs
This commit is contained in:
Edouard Griffiths 2024-02-11 11:51:16 +01:00 committed by GitHub
commit f35ea35a2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 36 additions and 0 deletions

View File

@ -366,6 +366,15 @@ bool BladeRF2MIMOGui::handleMessage(const Message& message)
return true;
}
else if (BladeRF2MIMO::MsgStartStop::match(message))
{
BladeRF2MIMO::MsgStartStop& notif = (BladeRF2MIMO::MsgStartStop&) message;
blockApplySettings(true);
(notif.getRxElseTx() ? ui->startStopRx : ui->startStopTx)->setChecked(notif.getStartStop());
blockApplySettings(false);
return true;
}
return false;
}

View File

@ -258,6 +258,15 @@ bool LimeSDRMIMOGUI::handleMessage(const Message& message)
ui->gpioText->setText(tr("%1").arg(report.getGPIOPins(), 2, 16, QChar('0')).toUpper());
return true;
}
else if (LimeSDRMIMO::MsgStartStop::match(message))
{
LimeSDRMIMO::MsgStartStop& notif = (LimeSDRMIMO::MsgStartStop&) message;
blockApplySettings(true);
(notif.getRxElseTx() ? ui->startStopRx : ui->startStopTx)->setChecked(notif.getStartStop());
blockApplySettings(false);
return true;
}
else
{
return false;
@ -299,6 +308,8 @@ void LimeSDRMIMOGUI::displaySettings()
updateADCRate();
ui->gainMode->setEnabled(true);
if (m_streamIndex == 0)
{
ui->lpf->setValue(m_settings.m_lpfBWRx0 / 1000);
@ -380,6 +391,13 @@ void LimeSDRMIMOGUI::displaySettings()
updateDACRate();
ui->gainMode->setEnabled(false);
ui->gain->setEnabled(true);
ui->lnaGain->setEnabled(false);
ui->tiaGain->setEnabled(false);
ui->pgaGain->setEnabled(false);
if (m_streamIndex == 0)
{
ui->lpf->setValue(m_settings.m_lpfBWTx0 / 1000);

View File

@ -442,6 +442,15 @@ bool PlutoSDRMIMOGUI::handleMessage(const Message& message)
return true;
}
else if (PlutoSDRMIMO::MsgStartStop::match(message))
{
PlutoSDRMIMO::MsgStartStop& notif = (PlutoSDRMIMO::MsgStartStop&) message;
blockApplySettings(true);
(notif.getRxElseTx() ? ui->startStopRx : ui->startStopTx)->setChecked(notif.getStartStop());
blockApplySettings(false);
return true;
}
return false;
}