Skip to content

Commit

Permalink
TimedAttempt: initialize missing variables at begin
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Aug 8, 2024
1 parent 5ac185e commit e940c43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utility/time/TimedAttempt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,16 @@ TimedAttempt::TimedAttempt(unsigned long minDelay, unsigned long maxDelay)

void TimedAttempt::begin(unsigned long delay) {
_retryCount = 0;
_retryDelay = 0;
_retryTick = 0;
_minDelay = delay;
_maxDelay = delay;
}

void TimedAttempt::begin(unsigned long minDelay, unsigned long maxDelay) {
_retryCount = 0;
_retryDelay = 0;
_retryTick = 0;
_minDelay = minDelay;
_maxDelay = maxDelay;
}
Expand Down

0 comments on commit e940c43

Please sign in to comment.