Skip to content

Commit 9595b94

Browse files
codingjourneyJF002
authored andcommitted
elapsedTimeBoundary as constexpr
1 parent 026be75 commit 9595b94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/stopwatch/StopWatchController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace Pinetime {
4747

4848
private:
4949
// Time at which stopwatch wraps around to zero (1000 hours)
50-
TickType_t elapsedTimeBoundary = configTICK_RATE_HZ * 60 * 60 * 1000;
50+
static constexpr TickType_t elapsedTimeBoundary = (TickType_t) configTICK_RATE_HZ * 60 * 60 * 1000;
5151
// Current state of stopwatch
5252
StopWatchStates currentState = StopWatchStates::Cleared;
5353
// Start time of current duration

0 commit comments

Comments
 (0)