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:
parent
c76adfc1a8
commit
924e54118c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user