Remove TX duration debug logging

_tx_start_ms and TX duration logging were added for 4-second
airtime verification and are no longer needed.
This commit is contained in:
jirogit 2026-03-28 00:02:00 -07:00
parent c725b82e77
commit 4276d84070
2 changed files with 1 additions and 4 deletions

View file

@ -143,7 +143,6 @@ uint32_t RadioLibWrapper::getEstAirtimeFor(int len_bytes) {
bool RadioLibWrapper::startSendRaw(const uint8_t* bytes, int len) {
_board->onBeforeTransmit();
_tx_start_ms = millis(); // recording TX time
int err = _radio->startTransmit((uint8_t *) bytes, len);
if (err == RADIOLIB_ERR_NONE) {
state = STATE_TX_WAIT;
@ -159,8 +158,6 @@ bool RadioLibWrapper::isSendComplete() {
if (state & STATE_INT_READY) {
state = STATE_IDLE;
n_sent++;
uint32_t tx_duration = millis() - _tx_start_ms;
MESH_DEBUG_PRINTLN("TX duration: %lu ms (len=%d)", tx_duration);
return true;
}
return false;

View file

@ -7,7 +7,7 @@ class RadioLibWrapper : public mesh::Radio {
protected:
PhysicalLayer* _radio;
mesh::MainBoard* _board;
uint32_t n_recv, n_sent, n_recv_errors, _tx_start_ms;
uint32_t n_recv, n_sent, n_recv_errors;
int16_t _noise_floor, _threshold;
uint8_t _busy_count; // consecutive busy detections for exponential backoff
uint16_t _num_floor_samples;