mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-24 10:50:29 -05:00
SDRdaemon plugin: use internal (slower) timer for Windows release only. Fixed compile error
This commit is contained in:
parent
be13c80e73
commit
55f389cfb0
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user