Skip to content

Commit

Permalink
partially revert Modem poll change to 250ms, partial because we're on…
Browse files Browse the repository at this point in the history
…ly reverting the poll time to 125ms (previous commit IDLE time);
  • Loading branch information
gatekeep committed Aug 17, 2024
1 parent c4038d9 commit 22a8ccb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/host/Host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,10 @@ void* Host::threadModem(void* arg)
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());
Expand Down
2 changes: 1 addition & 1 deletion src/host/modem/Modem.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ namespace modem
const uint32_t MAX_ADC_OVERFLOW = 128U;
const uint32_t MAX_DAC_OVERFLOW = 128U;

const uint32_t MODEM_POLL_TIME = 250U;
const uint32_t MODEM_POLL_TIME = 125U;

/** @} */

Expand Down

0 comments on commit 22a8ccb

Please sign in to comment.