Skip to content

Commit

Permalink
Merge pull request #2066 from godsic/bugfix/2065
Browse files Browse the repository at this point in the history
Fix bug that prevents settings changes updates via reverse API (#2065)
  • Loading branch information
f4exb authored Apr 14, 2024
2 parents cdae5ca + 15337ca commit 7e52d4a
Show file tree
Hide file tree
Showing 58 changed files with 58 additions and 58 deletions.
2 changes: 1 addition & 1 deletion plugins/channelrx/demodm17/m17demod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ void M17Demod::applySettings(const M17DemodSettings& settings, const QList<QStri
m_basebandSink->getInputMessageQueue()->push(msg);
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/channelrx/freqscanner/freqscanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ void FreqScanner::applySettings(const FreqScannerSettings& settings, const QStri
m_basebandSink->getInputMessageQueue()->push(msg);
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/channelrx/localsink/localsink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ void LocalSink::applySettings(const LocalSinkSettings& settings, const QList<QSt
m_basebandSink->getInputMessageQueue()->push(msg);
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/channelrx/remotetcpsink/remotetcpsink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ void RemoteTCPSink::applySettings(const RemoteTCPSinkSettings& settings, const Q
MsgConfigureRemoteTCPSink *msg = MsgConfigureRemoteTCPSink::create(settings, settingsKeys, force, remoteChange);
m_basebandSink->getInputMessageQueue()->push(msg);

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/feature/antennatools/antennatools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void AntennaTools::applySettings(const AntennaToolsSettings& settings, const QLi
{
qDebug() << "AntennaTools::applySettings:" << settings.getDebugString(settingsKeys, force) << " force: " << force;

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/feature/aprs/aprs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ void APRS::applySettings(const APRSSettings& settings, const QList<QString>& set
m_worker->getInputMessageQueue()->push(msg);
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/feature/demodanalyzer/demodanalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ void DemodAnalyzer::applySettings(const DemodAnalyzerSettings& settings, const Q
}


if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/feature/gs232controller/gs232controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ void GS232Controller::applySettings(const GS232ControllerSettings& settings, con
m_worker->getInputMessageQueue()->push(msg);
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/feature/jogdialcontroller/jogdialcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void JogdialController::applySettings(const JogdialControllerSettings& settings,
{
qDebug() << "JogdialController::applySettings:" << settings.getDebugString(settingsKeys, force) << " force: " << force;

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/feature/map/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void Map::applySettings(const MapSettings& settings, const QList<QString>& setti
{
qDebug() << "Map::applySettings:" << settings.getDebugString(settingsKeys, force) << " force: " << force;

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/feature/pertester/pertester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ void PERTester::applySettings(const PERTesterSettings& settings, const QList<QSt
m_worker->getInputMessageQueue()->push(msg);
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/feature/radiosonde/radiosonde.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void Radiosonde::applySettings(const RadiosondeSettings& settings, const QList<Q
{
qDebug() << "Radiosonde::applySettings:" << settings.getDebugString(settingsKeys, force) << " force: " << force;

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/feature/rigctlserver/rigctlserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void RigCtlServer::applySettings(const RigCtlServerSettings& settings, const QLi
);
m_worker->getInputMessageQueue()->push(msg);

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/feature/satellitetracker/satellitetracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ void SatelliteTracker::applySettings(const SatelliteTrackerSettings& settings, c
m_worker->getInputMessageQueue()->push(msg);
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/feature/sid/sid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ void SIDMain::applySettings(const SIDSettings& settings, const QList<QString>& s
m_worker->getInputMessageQueue()->push(msg);
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/feature/simpleptt/simpleptt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ void SimplePTT::applySettings(const SimplePTTSettings& settings, const QList<QSt
m_worker->getInputMessageQueue()->push(msg);
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/feature/skymap/skymap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void SkyMap::applySettings(const SkyMapSettings& settings, const QList<QString>&
{
qDebug() << "SkyMap::applySettings:" << settings.getDebugString(settingsKeys, force) << " force: " << force;

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/feature/startracker/startracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ void StarTracker::applySettings(const StarTrackerSettings& settings, const QList
m_worker->getInputMessageQueue()->push(msg);
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/feature/vorlocalizer/vorlocalizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ void VORLocalizer::applySettings(const VORLocalizerSettings& settings, const QLi
m_worker->getInputMessageQueue()->push(msg);
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplemimo/audiocatsiso/audiocatsiso.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ void AudioCATSISO::applySettings(const AudioCATSISOSettings& settings, const QLi
forwardTxChange = true;
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplemimo/bladerf2mimo/bladerf2mimo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ bool BladeRF2MIMO::applySettings(const BladeRF2MIMOSettings& settings, const QLi

// Reverse API settings

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplemimo/limesdrmimo/limesdrmimo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ bool LimeSDRMIMO::applySettings(const LimeSDRMIMOSettings& settings, const QList
}
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplemimo/plutosdrmimo/plutosdrmimo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ bool PlutoSDRMIMO::applySettings(const PlutoSDRMIMOSettings& settings, const QLi
plutoBox->set_params(DevicePlutoSDRBox::DEVICE_PHY, params);
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplemimo/xtrxmimo/xtrxmimo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ bool XTRXMIMO::applySettings(const XTRXMIMOSettings& settings, const QList<QStri

// Reverse API

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesink/aaroniartsaoutput/aaroniartsaoutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ void AaroniaRTSAOutput::applySettings(const AaroniaRTSAOutputSettings& settings,
}
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesink/audiooutput/audiooutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ void AudioOutput::applySettings(const AudioOutputSettings& settings, const QList
}
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesink/bladerf1output/bladerf1output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ bool Bladerf1Output::applySettings(const BladeRF1OutputSettings& settings, const
m_bladerfThread->startWork();
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesink/bladerf2output/bladerf2output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ bool BladeRF2Output::applySettings(const BladeRF2OutputSettings& settings, const
}
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesink/fileoutput/fileoutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ void FileOutput::applySettings(const FileOutputSettings& settings, const QList<Q
forwardChange = true;
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesink/hackrfoutput/hackrfoutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ bool HackRFOutput::applySettings(const HackRFOutputSettings& settings, const QLi
m_hackRFThread->startWork();
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesink/limesdroutput/limesdroutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ bool LimeSDROutput::applySettings(const LimeSDROutputSettings& settings, const Q
}
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesink/localoutput/localoutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ void LocalOutput::applySettings(const LocalOutputSettings& settings, const QList
QString remoteAddress;
QList<QString> reverseAPIKeys;

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesink/plutosdroutput/plutosdroutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ bool PlutoSDROutput::applySettings(const PlutoSDROutputSettings& settings, const
plutoBox->set_params(DevicePlutoSDRBox::DEVICE_PHY, params);
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesink/remoteoutput/remoteoutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ void RemoteOutput::applySettings(const RemoteOutputSettings& settings, const QLi

mutexLocker.unlock();

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesink/xtrxoutput/xtrxoutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ bool XTRXOutput::applySettings(const XTRXOutputSettings& settings, const QList<Q
forceNCOFrequency = true;
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesource/aaroniartsainput/aaroniartsainput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ bool AaroniaRTSAInput::applySettings(const AaroniaRTSAInputSettings& settings, c
emit setWorkerSampleRate(settings.m_sampleRate);
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesource/airspy/airspyinput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ bool AirspyInput::applySettings(const AirspySettings& settings, const QList<QStr
}
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesource/airspyhf/airspyhfinput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ bool AirspyHFInput::applySettings(const AirspyHFSettings& settings, const QList<
m_deviceAPI->getDeviceEngineInputMessageQueue()->push(notif);
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ void AndroidSDRDriverInput::applySettings(const AndroidSDRDriverInputSettings& s

mutexLocker.unlock();

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesource/audioinput/audioinput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ void AudioInput::applySettings(const AudioInputSettings& settings, QList<QString
settings.m_iqImbalance ? "true" : "false");
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesource/bladerf2input/bladerf2input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ bool BladeRF2Input::applySettings(const BladeRF2InputSettings& settings, const Q
}
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesource/fcdpro/fcdproinput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ void FCDProInput::applySettings(const FCDProSettings& settings, const QList<QStr
m_deviceAPI->configureCorrections(settings.m_dcBlock, settings.m_iqCorrection);
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesource/fcdproplus/fcdproplusinput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ void FCDProPlusInput::applySettings(const FCDProPlusSettings& settings, const QL
m_deviceAPI->configureCorrections(settings.m_dcBlock, settings.m_iqImbalance);
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
2 changes: 1 addition & 1 deletion plugins/samplesource/fileinput/fileinput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ bool FileInput::applySettings(const FileInputSettings& settings, const QList<QSt
}
}

if (settingsKeys.contains("useReverseAPI"))
if (settings.m_useReverseAPI)
{
bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) ||
settingsKeys.contains("reverseAPIAddress") ||
Expand Down
Loading

0 comments on commit 7e52d4a

Please sign in to comment.