From 2eeadfe758143d36ddb4d669efbb54524b2e2bed Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 22 Oct 2022 12:27:54 +0200 Subject: [PATCH] Airspy and AirspyHF: fixed apply use reverse API. Part of #1329 --- plugins/samplesource/airspy/airspyinput.cpp | 10 +++++----- plugins/samplesource/airspyhf/airspyhfinput.cpp | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/plugins/samplesource/airspy/airspyinput.cpp b/plugins/samplesource/airspy/airspyinput.cpp index cdccd978c6..ec34341e58 100644 --- a/plugins/samplesource/airspy/airspyinput.cpp +++ b/plugins/samplesource/airspy/airspyinput.cpp @@ -526,12 +526,12 @@ bool AirspyInput::applySettings(const AirspySettings& settings, const QListgetDeviceEngineInputMessageQueue()->push(notif); } - if (settings.m_useReverseAPI) + if (settingsKeys.contains("useReverseAPI")) { - bool fullUpdate = ((m_settings.m_useReverseAPI != settings.m_useReverseAPI) && settings.m_useReverseAPI) || - (m_settings.m_reverseAPIAddress != settings.m_reverseAPIAddress) || - (m_settings.m_reverseAPIPort != settings.m_reverseAPIPort) || - (m_settings.m_reverseAPIDeviceIndex != settings.m_reverseAPIDeviceIndex); - webapiReverseSendSettings(reverseAPIKeys, settings, fullUpdate || force); + bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) || + settingsKeys.contains("reverseAPIAddress") || + settingsKeys.contains("reverseAPIPort") || + settingsKeys.contains("reverseAPIDeviceIndex"); + webapiReverseSendSettings(settingsKeys, settings, fullUpdate || force); } if (force) {