diff options
| author | codingjourney <coding@journey.sk> | 2024-12-12 08:13:00 +0100 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2025-11-04 21:25:31 +0100 |
| commit | 11436090f77ef2c6c706a6dc847c5709c40da383 (patch) | |
| tree | d2813a139e152b19253160b81f23a8e8aac92a07 /src | |
| parent | b4032fff4dc45a022193204e43f4629884e739a6 (diff) | |
elapsedTimeBoundary as constexpr
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/stopwatch/StopWatchController.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/stopwatch/StopWatchController.h b/src/components/stopwatch/StopWatchController.h index 210cbeaa..bcc9b551 100644 --- a/src/components/stopwatch/StopWatchController.h +++ b/src/components/stopwatch/StopWatchController.h @@ -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 |
