diff --git a/plugins/channel/tcpsrc/tcpsrc.cpp b/plugins/channel/tcpsrc/tcpsrc.cpp index dff6a6bf5..2240214bb 100644 --- a/plugins/channel/tcpsrc/tcpsrc.cpp +++ b/plugins/channel/tcpsrc/tcpsrc.cpp @@ -116,7 +116,7 @@ bool TCPSrc::handleMessage(Message* cmd) m_sampleDistanceRemain = m_inputSampleRate / m_outputSampleRate; cmd->completed(); return true; - } else if(DSPSignalNotification::match(cmd)) { + } else if(MsgTCPSrcConfigure::match(cmd)) { MsgTCPSrcConfigure* cfg = (MsgTCPSrcConfigure*)cmd; m_sampleFormat = cfg->getSampleFormat(); m_outputSampleRate = cfg->getOutputSampleRate(); diff --git a/plugins/channel/tcpsrc/tcpsrc.h b/plugins/channel/tcpsrc/tcpsrc.h index b39e63cb1..b26d8e6d5 100644 --- a/plugins/channel/tcpsrc/tcpsrc.h +++ b/plugins/channel/tcpsrc/tcpsrc.h @@ -8,7 +8,7 @@ #include "dsp/interpolator.h" #include "util/message.h" -#define ssbFftLen 1024 +#define ssbFftLen 2048 class QTcpServer; class QTcpSocket; diff --git a/plugins/channel/tcpsrc/tcpsrcgui.cpp b/plugins/channel/tcpsrc/tcpsrcgui.cpp index a80303d34..1fbc1bc64 100644 --- a/plugins/channel/tcpsrc/tcpsrcgui.cpp +++ b/plugins/channel/tcpsrc/tcpsrcgui.cpp @@ -167,7 +167,7 @@ void TCPSrcGUI::applySettings() bool ok; Real outputSampleRate = ui->sampleRate->text().toDouble(&ok); - if((!ok) || (outputSampleRate < 100)) + if((!ok) || (outputSampleRate < 1000)) outputSampleRate = 48000; Real rfBandwidth = ui->rfBandwidth->text().toDouble(&ok); if((!ok) || (rfBandwidth > outputSampleRate)) diff --git a/plugins/channel/tcpsrc/tcpsrcgui.ui b/plugins/channel/tcpsrc/tcpsrcgui.ui index ae91c58bc..dc52aec07 100644 --- a/plugins/channel/tcpsrc/tcpsrcgui.ui +++ b/plugins/channel/tcpsrc/tcpsrcgui.ui @@ -157,7 +157,7 @@ - 16777215 + 400 100