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

FreeDV: REST API fixes (2)

This commit is contained in:
f4exb 2019-04-18 00:50:49 +02:00
parent c76adfc1a8
commit 924e54118c

View File

@ -805,6 +805,9 @@ int FreeDVDemod::webapiSettingsPutPatch(
settings.m_inputFrequencyOffset = response.getFreeDvDemodSettings()->getInputFrequencyOffset();
frequencyOffsetChanged = true;
}
if (channelSettingsKeys.contains("freeDVMode")) {
settings.m_freeDVMode = (FreeDVDemodSettings::FreeDVMode) response.getFreeDvDemodSettings()->getFreeDvMode();
}
if (channelSettingsKeys.contains("volume")) {
settings.m_volume = response.getFreeDvDemodSettings()->getVolume();
}
@ -915,6 +918,9 @@ void FreeDVDemod::webapiReverseSendSettings(QList<QString>& channelSettingsKeys,
if (channelSettingsKeys.contains("inputFrequencyOffset") || force) {
swgFreeDVDemodSettings->setInputFrequencyOffset(settings.m_inputFrequencyOffset);
}
if (channelSettingsKeys.contains("freeDVMode") || force) {
swgFreeDVDemodSettings->setFreeDvMode((int) settings.m_freeDVMode);
}
if (channelSettingsKeys.contains("volume") || force) {
swgFreeDVDemodSettings->setVolume(settings.m_volume);
}