From 612500d1b01225c2a2d19098b8ca8a9d9da3381c 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 566a116199..0d6a86a749 100644 --- a/src/displayapp/screens/WatchFaceDigital.cpp +++ b/src/displayapp/screens/WatchFaceDigital.cpp @@ -100,8 +100,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);