We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d9f39d commit 2f12cb9Copy full SHA for 2f12cb9
src/utility/time/TimedAttempt.cpp
@@ -53,7 +53,7 @@ unsigned long TimedAttempt::retry() {
53
54
unsigned long TimedAttempt::reload() {
55
unsigned long retryDelay = (1 << _retryCount) * _minDelay;
56
- retryDelay = min(retryDelay, _maxDelay);
+ _retryDelay = min(retryDelay, _maxDelay);
57
_nextRetryTick = millis() + retryDelay;
58
return retryDelay;
59
}
src/utility/time/TimedAttempt.h
@@ -34,6 +34,7 @@ class TimedAttempt {
34
unsigned long _minDelay;
35
unsigned long _maxDelay;
36
unsigned long _nextRetryTick;
37
+ unsigned long _retryDelay;
38
unsigned int _retryCount;
39
};
40
0 commit comments