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

fix SSB modulator configuration API query

This commit is contained in:
Stefan Biereigel 2019-02-24 14:57:06 +01:00
parent 57405213e6
commit 282be4e7c9

View File

@ -1199,17 +1199,17 @@ void SSBMod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& respon
apiCwKeyerSettings->setWpm(cwKeyerSettings.m_wpm); apiCwKeyerSettings->setWpm(cwKeyerSettings.m_wpm);
response.getAmModSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0); response.getSsbModSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0);
if (response.getAmModSettings()->getReverseApiAddress()) { if (response.getSsbModSettings()->getReverseApiAddress()) {
*response.getAmModSettings()->getReverseApiAddress() = settings.m_reverseAPIAddress; *response.getSsbModSettings()->getReverseApiAddress() = settings.m_reverseAPIAddress;
} else { } else {
response.getAmModSettings()->setReverseApiAddress(new QString(settings.m_reverseAPIAddress)); response.getSsbModSettings()->setReverseApiAddress(new QString(settings.m_reverseAPIAddress));
} }
response.getAmModSettings()->setReverseApiPort(settings.m_reverseAPIPort); response.getSsbModSettings()->setReverseApiPort(settings.m_reverseAPIPort);
response.getAmModSettings()->setReverseApiDeviceIndex(settings.m_reverseAPIDeviceIndex); response.getSsbModSettings()->setReverseApiDeviceIndex(settings.m_reverseAPIDeviceIndex);
response.getAmModSettings()->setReverseApiChannelIndex(settings.m_reverseAPIChannelIndex); response.getSsbModSettings()->setReverseApiChannelIndex(settings.m_reverseAPIChannelIndex);
} }
void SSBMod::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& response) void SSBMod::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& response)