From 55f389cfb0c76ad84bd7b3b2674e05e4d8fa24c0 Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 16 Mar 2016 22:40:54 +0100 Subject: [PATCH] SDRdaemon plugin: use internal (slower) timer for Windows release only. Fixed compile error --- plugins/samplesource/sdrdaemon/sdrdaemonudphandler.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/samplesource/sdrdaemon/sdrdaemonudphandler.cpp b/plugins/samplesource/sdrdaemon/sdrdaemonudphandler.cpp index 78f704cea..3adff3ce2 100644 --- a/plugins/samplesource/sdrdaemon/sdrdaemonudphandler.cpp +++ b/plugins/samplesource/sdrdaemon/sdrdaemonudphandler.cpp @@ -200,12 +200,13 @@ void SDRdaemonUDPHandler::connectTimer(const QTimer* timer) #warning "Uses internal timer" m_timer = new QTimer(); m_timer->start(100); -#else - m_timer = timer; -#endif m_throttlems = m_timer->interval(); - m_rateDivider = 1000 / m_throttlems; connect(m_timer, SIGNAL(timeout()), this, SLOT(tick())); +#else + m_throttlems = timer->interval(); + connect(timer, SIGNAL(timeout()), this, SLOT(tick())); +#endif + m_rateDivider = 1000 / m_throttlems; } void SDRdaemonUDPHandler::tick()