aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/stopwatch/StopWatchController.h
diff options
context:
space:
mode:
authorcodingjourney <coding@journey.sk>2024-11-28 05:19:34 +0100
committerJF <JF002@users.noreply.github.com>2025-11-04 21:25:31 +0100
commitf720a7fb3ce40880319ceba79eb00a9699dbc1ef (patch)
tree345a695b5a02c756617c6f37628961993720d72c /src/components/stopwatch/StopWatchController.h
parent5c2d4a515112f8ba6a23f34d59c8a481368a1e79 (diff)
upper bound for lap numbers
Diffstat (limited to 'src/components/stopwatch/StopWatchController.h')
-rw-r--r--src/components/stopwatch/StopWatchController.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/stopwatch/StopWatchController.h b/src/components/stopwatch/StopWatchController.h
index 800ca1b3..0791701c 100644
--- a/src/components/stopwatch/StopWatchController.h
+++ b/src/components/stopwatch/StopWatchController.h
@@ -55,9 +55,10 @@ namespace Pinetime {
// Maximum number of stored laps
static constexpr int histSize = 2;
+ static constexpr int lapNumberBoundary = 1000;
// Lap storage
Utility::CircularBuffer<LapInfo, histSize> history;
- // Highest lap number; may exceed histSize
+ // Highest lap number; less than lapNumberBoundary, may exceed histSize
int maxLapNumber;
};
}