From bbec66c6625777e490a9e037223ccfd7240650cf Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 3 Jan 2019 13:08:11 +0100 Subject: [PATCH] XTRX: fixes for better stability --- plugins/samplesink/xtrxoutput/xtrxoutput.cpp | 14 +++++++------- .../samplesink/xtrxoutput/xtrxoutputthread.cpp | 18 +++++++++++++----- .../samplesink/xtrxoutput/xtrxoutputthread.h | 1 - .../samplesource/xtrxinput/xtrxinputthread.cpp | 5 +++++ 4 files changed, 25 insertions(+), 13 deletions(-) diff --git a/plugins/samplesink/xtrxoutput/xtrxoutput.cpp b/plugins/samplesink/xtrxoutput/xtrxoutput.cpp index 1df21031c..0103ce1ad 100644 --- a/plugins/samplesink/xtrxoutput/xtrxoutput.cpp +++ b/plugins/samplesink/xtrxoutput/xtrxoutput.cpp @@ -525,7 +525,7 @@ void XTRXOutput::getLORange(float& minF, float& maxF, float& stepF) const minF = 29e6; maxF = 3840e6; stepF = 10; - qDebug("XTRXInput::getLORange: min: %f max: %f step: %f", + qDebug("XTRXOutput::getLORange: min: %f max: %f step: %f", minF, maxF, stepF); } @@ -534,7 +534,7 @@ void XTRXOutput::getSRRange(float& minF, float& maxF, float& stepF) const minF = 100e3; maxF = 120e6; stepF = 10; - qDebug("XTRXInput::getSRRange: min: %f max: %f step: %f", + qDebug("XTRXOutput::getSRRange: min: %f max: %f step: %f", minF, maxF, stepF); } @@ -543,7 +543,7 @@ void XTRXOutput::getLPRange(float& minF, float& maxF, float& stepF) const minF = 500e3; maxF = 130e6; stepF = 10; - qDebug("XTRXInput::getLPRange: min: %f max: %f step: %f", + qDebug("XTRXOutput::getLPRange: min: %f max: %f step: %f", minF, maxF, stepF); } @@ -832,14 +832,14 @@ bool XTRXOutput::applySettings(const XTRXOutputSettings& settings, bool force, b settings.m_lpfFIREnable, settings.m_lpfFIRBW) < 0) { - qCritical("XTRXInput::applySettings: could %s and set LPF FIR to %f Hz", + qCritical("XTRXOutput::applySettings: could %s and set LPF FIR to %f Hz", settings.m_lpfFIREnable ? "enable" : "disable", settings.m_lpfFIRBW); } else { //doCalibration = true; - qDebug("XTRXInput::applySettings: %sd and set LPF FIR to %f Hz", + qDebug("XTRXOutput::applySettings: %sd and set LPF FIR to %f Hz", settings.m_lpfFIREnable ? "enable" : "disable", settings.m_lpfFIRBW); } @@ -919,7 +919,7 @@ bool XTRXOutput::applySettings(const XTRXOutputSettings& settings, bool force, b if (m_deviceShared.set_samplerate(settings.m_devSampleRate, master, //(settings.m_devSampleRate< 1) { callbackMI((const qint16*) buffs[0], (const qint16*) buffs[1], 2 * nfo.out_samples); } else {