* 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

@ -290,7 +290,7 @@ class MyMesh : public mesh::Mesh, public CommonCLICallbacks {
case REQ_TYPE_GET_STATUS: {
ServerStats stats;
stats.batt_milli_volts = board.getBattMilliVolts();
stats.curr_tx_queue_len = _mgr->getOutboundCount();
stats.curr_tx_queue_len = _mgr->getOutboundCount(0xFFFFFFFF);
stats.curr_free_queue_len = _mgr->getFreeCount();
stats.last_rssi = (int16_t) radio_driver.getLastRSSI();
stats.n_packets_recv = radio_driver.getPacketsRecv();