fix double clocking of modem in the modem clock threaad;

pull/69/head
Bryan Biedenkapp 2 years ago
parent d1730d40fc
commit 9c3525a872

@ -1644,10 +1644,6 @@ void* Host::threadModem(void* arg)
stopWatch.start(); stopWatch.start();
while (!g_killed) { while (!g_killed) {
uint32_t ms = stopWatch.elapsed();
if (ms > 1U)
host->m_modem->clock(ms);
// scope is intentional // scope is intentional
{ {
std::lock_guard<std::mutex> lock(m_clockingMutex); std::lock_guard<std::mutex> lock(m_clockingMutex);
@ -1656,7 +1652,7 @@ void* Host::threadModem(void* arg)
// -- Modem Clocking -- // -- Modem Clocking --
// ------------------------------------------------------ // ------------------------------------------------------
ms = stopWatch.elapsed(); uint32_t ms = stopWatch.elapsed();
stopWatch.start(); stopWatch.start();
host->m_modem->clock(ms); host->m_modem->clock(ms);

Loading…
Cancel
Save

Powered by TurnKey Linux.