Skip to content

Commit

Permalink
Use type uint8_t intead of type int for the timer's minute and second…
Browse files Browse the repository at this point in the history
… values
  • Loading branch information
JustScott committed Oct 9, 2024
1 parent 54c1f56 commit 247f6a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/displayapp/screens/WatchFaceDigital.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ void WatchFaceDigital::Refresh() {
if (timer.IsRunning()) {
auto secondsRemaining = std::chrono::duration_cast<std::chrono::seconds>(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);
Expand Down

0 comments on commit 247f6a4

Please sign in to comment.