fix double clocking of modem in the modem clock threaad;

pull/69/head
Bryan Biedenkapp 1 year ago
parent d1730d40fc
commit 9c3525a872

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

Loading…
Cancel
Save

Powered by TurnKey Linux.