Skip to content

Commit

Permalink
Merge pull request #1973 from mxi-box/mimo_bugfix
Browse files Browse the repository at this point in the history
Fix MIMO GUI bugs
  • Loading branch information
f4exb authored Feb 11, 2024
2 parents c5c5b4f + 73a5db9 commit f35ea35
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plugins/samplemimo/bladerf2mimo/bladerf2mimogui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
18 changes: 18 additions & 0 deletions plugins/samplemimo/limesdrmimo/limesdrmimogui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -299,6 +308,8 @@ void LimeSDRMIMOGUI::displaySettings()

updateADCRate();

ui->gainMode->setEnabled(true);

if (m_streamIndex == 0)
{
ui->lpf->setValue(m_settings.m_lpfBWRx0 / 1000);
Expand Down Expand Up @@ -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);
Expand Down
9 changes: 9 additions & 0 deletions plugins/samplemimo/plutosdrmimo/plutosdrmimogui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f35ea35

Please sign in to comment.