aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorcodingjourney <coding@journey.sk>2024-12-12 08:13:00 +0100
committerJF <JF002@users.noreply.github.com>2025-11-04 21:25:31 +0100
commit11436090f77ef2c6c706a6dc847c5709c40da383 (patch)
treed2813a139e152b19253160b81f23a8e8aac92a07 /src
parentb4032fff4dc45a022193204e43f4629884e739a6 (diff)
elapsedTimeBoundary as constexpr
Diffstat (limited to 'src')
-rw-r--r--src/components/stopwatch/StopWatchController.h2
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