partially revert Modem poll change to 250ms, partial because we're only reverting the poll time to 125ms (previous commit IDLE time);

pull/69/head
Bryan Biedenkapp 1 year ago
parent c4038d92fb
commit 22a8ccb75f

@ -1656,7 +1656,10 @@ void* Host::threadModem(void* arg)
host->m_modem->clock(ms); host->m_modem->clock(ms);
} }
Thread::sleep(1U); if (host->m_state != STATE_IDLE)
Thread::sleep(m_activeTickDelay);
if (host->m_state == STATE_IDLE)
Thread::sleep(m_idleTickDelay);
} }
LogDebug(LOG_HOST, "[STOP] %s", threadName.c_str()); LogDebug(LOG_HOST, "[STOP] %s", threadName.c_str());

@ -272,7 +272,7 @@ namespace modem
const uint32_t MAX_ADC_OVERFLOW = 128U; const uint32_t MAX_ADC_OVERFLOW = 128U;
const uint32_t MAX_DAC_OVERFLOW = 128U; const uint32_t MAX_DAC_OVERFLOW = 128U;
const uint32_t MODEM_POLL_TIME = 250U; const uint32_t MODEM_POLL_TIME = 125U;
/** @} */ /** @} */

Loading…
Cancel
Save

Powered by TurnKey Linux.