From 323e5675e12b646c74103dde2dae3fd2a6929ea3 Mon Sep 17 00:00:00 2001 From: pennam Date: Tue, 18 Jun 2024 15:10:15 +0200 Subject: [PATCH] TimedAttempt: fix reload function not applying tick retry limit --- src/utility/time/TimedAttempt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utility/time/TimedAttempt.cpp b/src/utility/time/TimedAttempt.cpp index 01da506d7..4ff027fd6 100644 --- a/src/utility/time/TimedAttempt.cpp +++ b/src/utility/time/TimedAttempt.cpp @@ -54,8 +54,8 @@ unsigned long TimedAttempt::retry() { unsigned long TimedAttempt::reload() { unsigned long retryDelay = (1 << _retryCount) * _minDelay; _retryDelay = min(retryDelay, _maxDelay); - _nextRetryTick = millis() + retryDelay; - return retryDelay; + _nextRetryTick = millis() + _retryDelay; + return _retryDelay; } void TimedAttempt::reset() {