mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-21 23:55:13 -05:00
DSD demod: REST API: DMR private key implementation
This commit is contained in:
parent
eda67a6a21
commit
662ac6ef6d
@ -365,6 +365,9 @@ void DSDDemod::webapiUpdateChannelSettings(
|
||||
if (channelSettingsKeys.contains("pllLock")) {
|
||||
settings.m_pllLock = response.getDsdDemodSettings()->getPllLock() != 0;
|
||||
}
|
||||
if (channelSettingsKeys.contains("dmrBPKey")) {
|
||||
settings.m_dmrBPKey = response.getDsdDemodSettings()->getDmrBpKey();
|
||||
}
|
||||
if (channelSettingsKeys.contains("rgbColor")) {
|
||||
settings.m_rgbColor = response.getDsdDemodSettings()->getRgbColor();
|
||||
}
|
||||
@ -434,6 +437,7 @@ void DSDDemod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& resp
|
||||
response.getDsdDemodSettings()->setSlot2On(settings.m_slot2On ? 1 : 0);
|
||||
response.getDsdDemodSettings()->setTdmaStereo(settings.m_tdmaStereo ? 1 : 0);
|
||||
response.getDsdDemodSettings()->setPllLock(settings.m_pllLock ? 1 : 0);
|
||||
response.getDsdDemodSettings()->setDmrBpKey(settings.m_dmrBPKey);
|
||||
response.getDsdDemodSettings()->setRgbColor(settings.m_rgbColor);
|
||||
|
||||
if (response.getDsdDemodSettings()->getTitle()) {
|
||||
@ -545,6 +549,9 @@ void DSDDemod::webapiReverseSendSettings(QList<QString>& channelSettingsKeys, co
|
||||
if (channelSettingsKeys.contains("pllLock") || force) {
|
||||
swgDSDDemodSettings->setPllLock(settings.m_pllLock ? 1 : 0);
|
||||
}
|
||||
if (channelSettingsKeys.contains("dmrBPKey") || force) {
|
||||
swgDSDDemodSettings->setDmrBpKey(settings.m_dmrBPKey);
|
||||
}
|
||||
if (channelSettingsKeys.contains("rgbColor") || force) {
|
||||
swgDSDDemodSettings->setRgbColor(settings.m_rgbColor);
|
||||
}
|
||||
|
@ -468,6 +468,7 @@ void DSDDemodGUI::displaySettings()
|
||||
ui->tdmaStereoSplit->setChecked(m_settings.m_tdmaStereo);
|
||||
ui->audioMute->setChecked(m_settings.m_audioMute);
|
||||
ui->symbolPLLLock->setChecked(m_settings.m_pllLock);
|
||||
ui->dmrBPKey->setValue(m_settings.m_dmrBPKey % 256);
|
||||
ui->highPassFilter->setChecked(m_settings.m_highPassFilter);
|
||||
|
||||
ui->baudRate->setCurrentIndex(DSDDemodBaudRates::getRateIndex(m_settings.m_baudRate));
|
||||
|
Loading…
Reference in New Issue
Block a user