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 Feb 1, 2024
1 parent a37bd6a commit 071aebf
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 071aebf

Please sign in to comment.