Rename startTransmitTimerSNR to startTransmitTimerRebroadcast

This commit is contained in:
Mike Robbins 2025-09-05 13:38:01 -07:00
parent 83ae72cbb2
commit 7e00054fd7
4 changed files with 6 additions and 6 deletions

View File

@ -323,7 +323,7 @@ void RadioLibInterface::setTransmitDelay()
} else { } else {
// If there is a SNR, start a timer scaled based on that SNR. // If there is a SNR, start a timer scaled based on that SNR.
LOG_DEBUG("rx_snr found. hop_limit:%d rx_snr:%f", p->hop_limit, p->rx_snr); LOG_DEBUG("rx_snr found. hop_limit:%d rx_snr:%f", p->hop_limit, p->rx_snr);
startTransmitTimerSNR(p->rx_snr); startTransmitTimerRebroadcast(p->rx_snr);
} }
} }
@ -336,7 +336,7 @@ void RadioLibInterface::startTransmitTimer(bool withDelay)
} }
} }
void RadioLibInterface::startTransmitTimerSNR(float snr) void RadioLibInterface::startTransmitTimerRebroadcast(float snr)
{ {
// If we have work to do and the timer wasn't already scheduled, schedule it now // If we have work to do and the timer wasn't already scheduled, schedule it now
if (!txQueue.empty()) { if (!txQueue.empty()) {

View File

@ -161,7 +161,7 @@ class RadioLibInterface : public RadioInterface, protected concurrency::Notified
* timer scaled to SNR of to be flooded packet * timer scaled to SNR of to be flooded packet
* @return Timestamp after which the packet may be sent * @return Timestamp after which the packet may be sent
*/ */
void startTransmitTimerSNR(float snr); void startTransmitTimerRebroadcast(float snr);
void handleTransmitInterrupt(); void handleTransmitInterrupt();
void handleReceiveInterrupt(); void handleReceiveInterrupt();

View File

@ -43,7 +43,7 @@ void SimRadio::setTransmitDelay()
} else { } else {
// If there is a SNR, start a timer scaled based on that SNR. // If there is a SNR, start a timer scaled based on that SNR.
LOG_DEBUG("rx_snr found. hop_limit:%d rx_snr:%f", p->hop_limit, p->rx_snr); LOG_DEBUG("rx_snr found. hop_limit:%d rx_snr:%f", p->hop_limit, p->rx_snr);
startTransmitTimerSNR(p->rx_snr); startTransmitTimerRebroadcast(p->rx_snr);
} }
} }
@ -57,7 +57,7 @@ void SimRadio::startTransmitTimer(bool withDelay)
} }
} }
void SimRadio::startTransmitTimerSNR(float snr) void SimRadio::startTransmitTimerRebroadcast(float snr)
{ {
// If we have work to do and the timer wasn't already scheduled, schedule it now // If we have work to do and the timer wasn't already scheduled, schedule it now
if (!txQueue.empty()) { if (!txQueue.empty()) {

View File

@ -64,7 +64,7 @@ class SimRadio : public RadioInterface, protected concurrency::NotifiedWorkerThr
void startTransmitTimer(bool withDelay = true); void startTransmitTimer(bool withDelay = true);
/** timer scaled to SNR of to be flooded packet */ /** timer scaled to SNR of to be flooded packet */
void startTransmitTimerSNR(float snr); void startTransmitTimerRebroadcast(float snr);
void handleTransmitInterrupt(); void handleTransmitInterrupt();
void handleReceiveInterrupt(); void handleReceiveInterrupt();