Skip to content

Commit

Permalink
elapsedTimeBoundary as constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
codingjourney committed Dec 12, 2024
1 parent 42c5913 commit 1b665bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/stopwatch/StopWatchController.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace Pinetime {

private:
// Time at which stopwatch wraps around to zero (1000 hours)
TickType_t elapsedTimeBoundary = configTICK_RATE_HZ * 60 * 60 * 1000;
static constexpr TickType_t elapsedTimeBoundary = (TickType_t) configTICK_RATE_HZ * 60 * 60 * 1000;
// Current state of stopwatch
StopWatchStates currentState = StopWatchStates::Cleared;
// Start time of current duration
Expand Down

0 comments on commit 1b665bf

Please sign in to comment.