From 1b665bf11479eda32bca5f0fd32c68656f3842f6 Mon Sep 17 00:00:00 2001 From: codingjourney Date: Thu, 12 Dec 2024 08:13:00 +0100 Subject: [PATCH] elapsedTimeBoundary as constexpr --- src/components/stopwatch/StopWatchController.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/stopwatch/StopWatchController.h b/src/components/stopwatch/StopWatchController.h index 210cbeaac0..bcc9b5515c 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