mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
* Dispatcher::checkSend() bug: getOutboundCount() should only count non-future packets
This commit is contained in:
parent
a56e9ef62f
commit
e291b57a07
6 changed files with 17 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue