From f74fdbeb3d10eb784c372b156de08d40a0851c8a Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Thu, 15 Jul 2021 12:03:26 +0100 Subject: [PATCH] Fix copy and paste errors in Packet Mod web API --- plugins/channeltx/modpacket/packetmod.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/channeltx/modpacket/packetmod.cpp b/plugins/channeltx/modpacket/packetmod.cpp index 1e8e19485..94dd6e3c4 100644 --- a/plugins/channeltx/modpacket/packetmod.cpp +++ b/plugins/channeltx/modpacket/packetmod.cpp @@ -615,13 +615,13 @@ void PacketMod::webapiUpdateChannelSettings( settings.m_reverseAPIChannelIndex = response.getPacketModSettings()->getReverseApiChannelIndex(); } if (channelSettingsKeys.contains("udpEnabled")) { - settings.m_udpEnabled = response.getPacketDemodSettings()->getUdpEnabled(); + settings.m_udpEnabled = response.getPacketModSettings()->getUdpEnabled(); } if (channelSettingsKeys.contains("udpAddress")) { - settings.m_udpAddress = *response.getPacketDemodSettings()->getUdpAddress(); + settings.m_udpAddress = *response.getPacketModSettings()->getUdpAddress(); } 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)); } if (channelSettingsKeys.contains("bpf") || force) { - swgPacketModSettings->setBpf(settings.m_preEmphasis ? 1 : 0); + swgPacketModSettings->setBpf(settings.m_bpf ? 1 : 0); } if (channelSettingsKeys.contains("bpfLowCutoff") || force) { swgPacketModSettings->setBpfLowCutoff(settings.m_bpfLowCutoff);