Browse Source

fix retransmit counter for secondtry

- try to fix "45ms"-Problem
pull/1394/head
rejoe2 1 year ago
committed by GitHub
parent
commit
3fbd2c7c88
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      src/hm/Communication.h
  2. 1
      src/hm/hmRadio.h

4
src/hm/Communication.h

@ -156,9 +156,9 @@ class Communication : public CommQueue<> {
if(mFirstTry) {
mFirstTry = false;
setAttempt();
//setAttempt();
mHeu.evalTxChQuality(q->iv, false, 0, 0);
q->iv->radioStatistics.rxFailNoAnser++;
//q->iv->radioStatistics.rxFailNoAnser++; // should only be one of fail or retransmit.
q->iv->radioStatistics.retransmits++;
q->iv->radio->mRadioWaitTime.stopTimeMonitor();
mState = States::START;

1
src/hm/hmRadio.h

@ -167,6 +167,7 @@ class HmRadio : public Radio {
if(rx_ready) {
if (getReceived()) { // check what we got, returns true for last package
mNRFisInRX = false;
rx_ready = false;
mRadioWaitTime.startTimeMonitor(DURATION_PAUSE_LASTFR); // let the inverter first end his transmissions
mNrf24->stopListening();
} else {

Loading…
Cancel
Save