diff options
| author | codingjourney <coding@journey.sk> | 2024-11-30 22:23:31 +0100 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2025-11-04 21:25:31 +0100 |
| commit | 487205ef6a8e81fe887a1fcd72fee9c4de33c81f (patch) | |
| tree | d462c262287256b297bf7f06ba57ce55ff4164cf /src/components/stopwatch/StopWatchController.cpp | |
| parent | 4de9fc9b88c1e3fc9ced4931d446386374161d61 (diff) | |
length of lap list adapting to available space
Diffstat (limited to 'src/components/stopwatch/StopWatchController.cpp')
| -rw-r--r-- | src/components/stopwatch/StopWatchController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/stopwatch/StopWatchController.cpp b/src/components/stopwatch/StopWatchController.cpp index 64261055..4979ee68 100644 --- a/src/components/stopwatch/StopWatchController.cpp +++ b/src/components/stopwatch/StopWatchController.cpp @@ -33,9 +33,9 @@ void StopWatchController::Clear() { void StopWatchController::AddLapToHistory() { TickType_t lapEnd = GetElapsedTime(); + history--; history[0].timeSinceStart = lapEnd; history[0].number = ++maxLapNumber % lapNumberBoundary; - history--; } int StopWatchController::GetMaxLapNumber() { |
