* Dispatcher::checkSend() bug: getOutboundCount() should only count non-future packets

This commit is contained in:
Scott Powell 2025-05-14 16:50:11 +10:00
parent a56e9ef62f
commit e291b57a07
6 changed files with 17 additions and 7 deletions

View file

@ -205,7 +205,7 @@ void Dispatcher::processRecvPacket(Packet* pkt) {
}
void Dispatcher::checkSend() {
if (_mgr->getOutboundCount() == 0) return; // nothing waiting to send
if (_mgr->getOutboundCount(_ms->getMillis()) == 0) return; // nothing waiting to send
if (!millisHasNowPassed(next_tx_time)) return; // still in 'radio silence' phase (from airtime budget setting)
if (_radio->isReceiving()) { // LBT - check if radio is currently mid-receive, or if channel activity
if (cad_busy_start == 0) {