diff options
| author | codingjourney <coding@journey.sk> | 2024-10-24 21:49:42 +0200 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2025-11-04 21:25:31 +0100 |
| commit | d927a228477519bd3784650cefdceecbc500e75d (patch) | |
| tree | 95e27234040175824286f40f20c8b8dca274c32c /src/displayapp/screens/StopWatch.cpp | |
| parent | f28aca75419ebaae55b34b688f4d3b9d2f913246 (diff) | |
lap storage as CircularBuffer, minor fixes
Diffstat (limited to 'src/displayapp/screens/StopWatch.cpp')
| -rw-r--r-- | src/displayapp/screens/StopWatch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/StopWatch.cpp b/src/displayapp/screens/StopWatch.cpp index b17518d5..cc11f885 100644 --- a/src/displayapp/screens/StopWatch.cpp +++ b/src/displayapp/screens/StopWatch.cpp @@ -176,7 +176,7 @@ void StopWatch::RenderPause() { void StopWatch::RenderLaps() { lv_label_set_text(lapText, ""); - for (int i = displayedLaps - 1; i >= 0; i--) { + for (int i = 0; i < displayedLaps; i++) { std::optional<LapInfo> lap = stopWatchController.LastLap(i); if (lap) { |
