From d927a228477519bd3784650cefdceecbc500e75d Mon Sep 17 00:00:00 2001 From: codingjourney Date: Thu, 24 Oct 2024 21:49:42 +0200 Subject: lap storage as CircularBuffer, minor fixes --- src/displayapp/screens/StopWatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/displayapp/screens') 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 lap = stopWatchController.LastLap(i); if (lap) { -- cgit v1.2.3-70-g09d2