Fix WebAPI settings for identThreshold and magDecAdjust

This commit is contained in:
Jon Beniston 2021-01-13 17:11:21 +00:00
parent 41fca9d2fd
commit 1adfe3415c
1 changed files with 2 additions and 2 deletions

View File

@ -473,10 +473,10 @@ void VORDemod::webapiFormatChannelSettings(
swgVORDemodSettings->setStreamIndex(settings.m_streamIndex);
}
if (channelSettingsKeys.contains("identThreshold") || force) {
swgVORDemodSettings->setAudioMute(settings.m_identThreshold);
swgVORDemodSettings->setIdentThreshold(settings.m_identThreshold);
}
if (channelSettingsKeys.contains("magDecAdjust") || force) {
swgVORDemodSettings->setAudioMute(settings.m_magDecAdjust ? 1 : 0);
swgVORDemodSettings->setMagDecAdjust(settings.m_magDecAdjust ? 1 : 0);
}
}