From 11436090f77ef2c6c706a6dc847c5709c40da383 Mon Sep 17 00:00:00 2001 From: codingjourney Date: Thu, 12 Dec 2024 08:13:00 +0100 Subject: elapsedTimeBoundary as constexpr --- src/components/stopwatch/StopWatchController.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/stopwatch') 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 -- cgit v1.2.3-70-g09d2