mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-24 11:12:27 -04:00
Fix: GUI handle Startstop message
This commit is contained in:
parent
943105d940
commit
09ba1cc700
@ -366,6 +366,15 @@ bool BladeRF2MIMOGui::handleMessage(const Message& message)
|
|||||||
|
|
||||||
return true;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -258,6 +258,15 @@ bool LimeSDRMIMOGUI::handleMessage(const Message& message)
|
|||||||
ui->gpioText->setText(tr("%1").arg(report.getGPIOPins(), 2, 16, QChar('0')).toUpper());
|
ui->gpioText->setText(tr("%1").arg(report.getGPIOPins(), 2, 16, QChar('0')).toUpper());
|
||||||
return true;
|
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
|
else
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
@ -442,6 +442,15 @@ bool PlutoSDRMIMOGUI::handleMessage(const Message& message)
|
|||||||
|
|
||||||
return true;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user