Skip to content

Commit

Permalink
fix(color): timer widget displays wrong UI for count up timers (#5935)
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz authored Feb 21, 2025
1 parent 16a7d02 commit 088c8e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions radio/src/gui/colorlcd/widgets/timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class TimerWidget : public Widget
lv_label_set_text(unit0, sUnit0);
lv_label_set_text(unit1, sUnit1);

if (lastValue > 0) {
if (lastValue > 0 && lastStartValue > 0) {
lv_obj_clear_flag(timerArc, LV_OBJ_FLAG_HIDDEN);
timerIcon->hide();
} else {
Expand Down Expand Up @@ -209,7 +209,7 @@ class TimerWidget : public Widget

protected:
tmrval_t lastValue = 0;
uint32_t lastStartValue = 0;
uint32_t lastStartValue = -1;
bool isLarge = false;
lv_style_t style;
lv_obj_t* nameLabel = nullptr;
Expand Down

0 comments on commit 088c8e2

Please sign in to comment.