Fix: GUI handle Startstop message

This commit is contained in:
hexinyue02 2024-02-04 18:53:32 +08:00
parent 943105d940
commit 09ba1cc700
3 changed files with 27 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;

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