diff --git a/src/helpers/radiolib/RadioLibWrappers.cpp b/src/helpers/radiolib/RadioLibWrappers.cpp index d0a0a94c..e4f9e566 100644 --- a/src/helpers/radiolib/RadioLibWrappers.cpp +++ b/src/helpers/radiolib/RadioLibWrappers.cpp @@ -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; diff --git a/src/helpers/radiolib/RadioLibWrappers.h b/src/helpers/radiolib/RadioLibWrappers.h index 2ca2f59a..8c3a6e74 100644 --- a/src/helpers/radiolib/RadioLibWrappers.h +++ b/src/helpers/radiolib/RadioLibWrappers.h @@ -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;