1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 16:08:39 -05:00

REST API: fixed reverse API address setting

This commit is contained in:
f4exb 2019-01-13 11:35:31 +01:00
parent b0a1f97fbc
commit 46e92e41dc
6 changed files with 6 additions and 6 deletions

View File

@ -443,7 +443,7 @@ int DaemonSink::webapiSettingsPutPatch(
settings.m_useReverseAPI = response.getDaemonSinkSettings()->getUseReverseApi() != 0; settings.m_useReverseAPI = response.getDaemonSinkSettings()->getUseReverseApi() != 0;
} }
if (channelSettingsKeys.contains("reverseAPIAddress")) { if (channelSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getDaemonSinkSettings()->getReverseApiAddress() != 0; settings.m_reverseAPIAddress = *response.getDaemonSinkSettings()->getReverseApiAddress();
} }
if (channelSettingsKeys.contains("reverseAPIPort")) { if (channelSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getDaemonSinkSettings()->getReverseApiPort(); settings.m_reverseAPIPort = response.getDaemonSinkSettings()->getReverseApiPort();

View File

@ -1300,7 +1300,7 @@ int LimeSDROutput::webapiSettingsPutPatch(
settings.m_useReverseAPI = response.getLimeSdrOutputSettings()->getUseReverseApi() != 0; settings.m_useReverseAPI = response.getLimeSdrOutputSettings()->getUseReverseApi() != 0;
} }
if (deviceSettingsKeys.contains("reverseAPIAddress")) { if (deviceSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getLimeSdrOutputSettings()->getReverseApiAddress() != 0; settings.m_reverseAPIAddress = *response.getLimeSdrOutputSettings()->getReverseApiAddress();
} }
if (deviceSettingsKeys.contains("reverseAPIPort")) { if (deviceSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getLimeSdrOutputSettings()->getReverseApiPort(); settings.m_reverseAPIPort = response.getLimeSdrOutputSettings()->getReverseApiPort();

View File

@ -1225,7 +1225,7 @@ int XTRXOutput::webapiSettingsPutPatch(
settings.m_useReverseAPI = response.getXtrxOutputSettings()->getUseReverseApi() != 0; settings.m_useReverseAPI = response.getXtrxOutputSettings()->getUseReverseApi() != 0;
} }
if (deviceSettingsKeys.contains("reverseAPIAddress")) { if (deviceSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getXtrxOutputSettings()->getReverseApiAddress() != 0; settings.m_reverseAPIAddress = *response.getXtrxOutputSettings()->getReverseApiAddress();
} }
if (deviceSettingsKeys.contains("reverseAPIPort")) { if (deviceSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getXtrxOutputSettings()->getReverseApiPort(); settings.m_reverseAPIPort = response.getXtrxOutputSettings()->getReverseApiPort();

View File

@ -1509,7 +1509,7 @@ int LimeSDRInput::webapiSettingsPutPatch(
settings.m_useReverseAPI = response.getLimeSdrInputSettings()->getUseReverseApi() != 0; settings.m_useReverseAPI = response.getLimeSdrInputSettings()->getUseReverseApi() != 0;
} }
if (deviceSettingsKeys.contains("reverseAPIAddress")) { if (deviceSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getLimeSdrInputSettings()->getReverseApiAddress() != 0; settings.m_reverseAPIAddress = *response.getLimeSdrInputSettings()->getReverseApiAddress();
} }
if (deviceSettingsKeys.contains("reverseAPIPort")) { if (deviceSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getLimeSdrInputSettings()->getReverseApiPort(); settings.m_reverseAPIPort = response.getLimeSdrInputSettings()->getReverseApiPort();

View File

@ -649,7 +649,7 @@ int RTLSDRInput::webapiSettingsPutPatch(
settings.m_useReverseAPI = response.getRtlSdrSettings()->getUseReverseApi() != 0; settings.m_useReverseAPI = response.getRtlSdrSettings()->getUseReverseApi() != 0;
} }
if (deviceSettingsKeys.contains("reverseAPIAddress")) { if (deviceSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getRtlSdrSettings()->getReverseApiAddress() != 0; settings.m_reverseAPIAddress = *response.getRtlSdrSettings()->getReverseApiAddress();
} }
if (deviceSettingsKeys.contains("reverseAPIPort")) { if (deviceSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getRtlSdrSettings()->getReverseApiPort(); settings.m_reverseAPIPort = response.getRtlSdrSettings()->getReverseApiPort();

View File

@ -1400,7 +1400,7 @@ int XTRXInput::webapiSettingsPutPatch(
settings.m_useReverseAPI = response.getXtrxInputSettings()->getUseReverseApi() != 0; settings.m_useReverseAPI = response.getXtrxInputSettings()->getUseReverseApi() != 0;
} }
if (deviceSettingsKeys.contains("reverseAPIAddress")) { if (deviceSettingsKeys.contains("reverseAPIAddress")) {
settings.m_reverseAPIAddress = *response.getXtrxInputSettings()->getReverseApiAddress() != 0; settings.m_reverseAPIAddress = *response.getXtrxInputSettings()->getReverseApiAddress();
} }
if (deviceSettingsKeys.contains("reverseAPIPort")) { if (deviceSettingsKeys.contains("reverseAPIPort")) {
settings.m_reverseAPIPort = response.getXtrxInputSettings()->getReverseApiPort(); settings.m_reverseAPIPort = response.getXtrxInputSettings()->getReverseApiPort();