From 247f6a49dd37d9b9f2025f2ee6d8bd584458a9b3 Mon Sep 17 00:00:00 2001 From: JustScott Date: Sun, 14 Jan 2024 17:44:56 -0600 Subject: [PATCH] Use type uint8_t intead of type int for the timer's minute and second values --- src/displayapp/screens/WatchFaceDigital.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/displayapp/screens/WatchFaceDigital.cpp b/src/displayapp/screens/WatchFaceDigital.cpp index 5d182b463d..cbe3e0f045 100644 --- a/src/displayapp/screens/WatchFaceDigital.cpp +++ b/src/displayapp/screens/WatchFaceDigital.cpp @@ -116,8 +116,8 @@ void WatchFaceDigital::Refresh() { if (timer.IsRunning()) { auto secondsRemaining = std::chrono::duration_cast(timer.GetTimeRemaining()); - int minutes = secondsRemaining.count() / 60; - int seconds = secondsRemaining.count() % 60; + uint8_t minutes = secondsRemaining.count() / 60; + uint8_t seconds = secondsRemaining.count() % 60; lv_label_set_text_fmt(timeRemaining, "%02d:%02d", minutes, seconds); lv_obj_set_hidden(timeRemaining, false);