1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-05-24 03:02:29 -04:00

Fix copy and paste errors in Packet Mod web API

This commit is contained in:
Jon Beniston 2021-07-15 12:03:26 +01:00
parent 99c0236cb6
commit f74fdbeb3d

View File

@ -615,13 +615,13 @@ void PacketMod::webapiUpdateChannelSettings(
settings.m_reverseAPIChannelIndex = response.getPacketModSettings()->getReverseApiChannelIndex(); settings.m_reverseAPIChannelIndex = response.getPacketModSettings()->getReverseApiChannelIndex();
} }
if (channelSettingsKeys.contains("udpEnabled")) { if (channelSettingsKeys.contains("udpEnabled")) {
settings.m_udpEnabled = response.getPacketDemodSettings()->getUdpEnabled(); settings.m_udpEnabled = response.getPacketModSettings()->getUdpEnabled();
} }
if (channelSettingsKeys.contains("udpAddress")) { if (channelSettingsKeys.contains("udpAddress")) {
settings.m_udpAddress = *response.getPacketDemodSettings()->getUdpAddress(); settings.m_udpAddress = *response.getPacketModSettings()->getUdpAddress();
} }
if (channelSettingsKeys.contains("udpPort")) { if (channelSettingsKeys.contains("udpPort")) {
settings.m_udpPort = response.getPacketDemodSettings()->getUdpPort(); settings.m_udpPort = response.getPacketModSettings()->getUdpPort();
} }
} }
@ -930,7 +930,7 @@ void PacketMod::webapiFormatChannelSettings(
swgPacketModSettings->setData(new QString(settings.m_data)); swgPacketModSettings->setData(new QString(settings.m_data));
} }
if (channelSettingsKeys.contains("bpf") || force) { if (channelSettingsKeys.contains("bpf") || force) {
swgPacketModSettings->setBpf(settings.m_preEmphasis ? 1 : 0); swgPacketModSettings->setBpf(settings.m_bpf ? 1 : 0);
} }
if (channelSettingsKeys.contains("bpfLowCutoff") || force) { if (channelSettingsKeys.contains("bpfLowCutoff") || force) {
swgPacketModSettings->setBpfLowCutoff(settings.m_bpfLowCutoff); swgPacketModSettings->setBpfLowCutoff(settings.m_bpfLowCutoff);