Match beacon TX retirement to fixed AGC cadence

This commit is contained in:
mikecarper committed 2026-10-16 03:34:27 -07:00
1 parent 5199150917
commit 7ef4708aee
2 files changed
+92

No files matched your search

+2
View File
@@ -45,6 +45,8 @@ bool Dispatcher::queueBeaconRadioFrame(const uint8_t* bytes, size_t length,
void Dispatcher::accountBeaconAirtime() {
const uint32_t elapsed = uint32_t(_ms->getMillis()) - beacon_tx->start;
total_air_time += elapsed;
// Match ordinary TX retirement without postponing adaptive maintenance.
agc_reset.noteTransmit(_ms->getMillis());
updateTxBudget();
tx_budget_ms = elapsed >= tx_budget_ms ? 0 : tx_budget_ms - elapsed;
if (tx_budget_ms < 100) {