Browse Source
fix retransmit counter for secondtry
- try to fix "45ms"-Problem
pull/1394/head
rejoe2
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
3 additions and
2 deletions
-
src/hm/Communication.h
-
src/hm/hmRadio.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; |
|
|
|
|
|
@ -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 { |
|
|
|