mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-17 13:51:47 -05:00
AM demod: fixed reverse API settings from the API
This commit is contained in:
parent
387c5a0e3b
commit
1e0da5b8ee
@ -438,7 +438,7 @@ void AMDemod::applySettings(const AMDemodSettings& settings, bool force)
|
|||||||
<< " m_syncAMOperation: " << (int) settings.m_syncAMOperation
|
<< " m_syncAMOperation: " << (int) settings.m_syncAMOperation
|
||||||
<< " m_useReverseAPI: " << settings.m_useReverseAPI
|
<< " m_useReverseAPI: " << settings.m_useReverseAPI
|
||||||
<< " m_reverseAPIAddress: " << settings.m_reverseAPIAddress
|
<< " m_reverseAPIAddress: " << settings.m_reverseAPIAddress
|
||||||
<< " m_reverseAPIAddress: " << settings.m_reverseAPIPort
|
<< " m_reverseAPIPort: " << settings.m_reverseAPIPort
|
||||||
<< " m_reverseAPIDeviceIndex: " << settings.m_reverseAPIDeviceIndex
|
<< " m_reverseAPIDeviceIndex: " << settings.m_reverseAPIDeviceIndex
|
||||||
<< " m_reverseAPIChannelIndex: " << settings.m_reverseAPIChannelIndex
|
<< " m_reverseAPIChannelIndex: " << settings.m_reverseAPIChannelIndex
|
||||||
<< " force: " << force;
|
<< " force: " << force;
|
||||||
@ -621,7 +621,7 @@ int AMDemod::webapiSettingsPutPatch(
|
|||||||
settings.m_useReverseAPI = response.getAmDemodSettings()->getUseReverseApi() != 0;
|
settings.m_useReverseAPI = response.getAmDemodSettings()->getUseReverseApi() != 0;
|
||||||
}
|
}
|
||||||
if (channelSettingsKeys.contains("reverseAPIAddress")) {
|
if (channelSettingsKeys.contains("reverseAPIAddress")) {
|
||||||
settings.m_reverseAPIAddress = *response.getAmDemodSettings()->getReverseApiAddress() != 0;
|
settings.m_reverseAPIAddress = *response.getAmDemodSettings()->getReverseApiAddress();
|
||||||
}
|
}
|
||||||
if (channelSettingsKeys.contains("reverseAPIPort")) {
|
if (channelSettingsKeys.contains("reverseAPIPort")) {
|
||||||
settings.m_reverseAPIPort = response.getAmDemodSettings()->getReverseApiPort();
|
settings.m_reverseAPIPort = response.getAmDemodSettings()->getReverseApiPort();
|
||||||
|
@ -60,7 +60,7 @@ void BasicChannelSettingsDialog::setReverseAPIDeviceIndex(uint16_t deviceIndex)
|
|||||||
void BasicChannelSettingsDialog::setReverseAPIChannelIndex(uint16_t channelIndex)
|
void BasicChannelSettingsDialog::setReverseAPIChannelIndex(uint16_t channelIndex)
|
||||||
{
|
{
|
||||||
m_reverseAPIChannelIndex = channelIndex > 99 ? 99 : channelIndex;
|
m_reverseAPIChannelIndex = channelIndex > 99 ? 99 : channelIndex;
|
||||||
ui->reverseAPIDeviceIndex->setText(tr("%1").arg(m_reverseAPIChannelIndex));
|
ui->reverseAPIChannelIndex->setText(tr("%1").arg(m_reverseAPIChannelIndex));
|
||||||
}
|
}
|
||||||
|
|
||||||
void BasicChannelSettingsDialog::paintColor()
|
void BasicChannelSettingsDialog::paintColor()
|
||||||
|
Loading…
Reference in New Issue
Block a user