1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 18:15:45 -05:00

SDRdaemon plugin: use internal (slower) timer for Windows release only. Fixed compile error

This commit is contained in:
f4exb 2016-03-16 22:40:54 +01:00
parent be13c80e73
commit 55f389cfb0

View File

@ -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()