Skip to content

Commit 2e1becd

Browse files
philmozpfeerick
authored andcommitted
fix(color): timer widget displays wrong UI for count up timers (#5935)
1 parent 7bb922b commit 2e1becd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

radio/src/gui/colorlcd/widgets/timer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class TimerWidget : public Widget
137137
lv_label_set_text(unit0, sUnit0);
138138
lv_label_set_text(unit1, sUnit1);
139139

140-
if (lastValue > 0) {
140+
if (lastValue > 0 && lastStartValue > 0) {
141141
lv_obj_clear_flag(timerArc, LV_OBJ_FLAG_HIDDEN);
142142
timerIcon->hide();
143143
} else {
@@ -209,7 +209,7 @@ class TimerWidget : public Widget
209209

210210
protected:
211211
tmrval_t lastValue = 0;
212-
uint32_t lastStartValue = 0;
212+
uint32_t lastStartValue = -1;
213213
bool isLarge = false;
214214
lv_style_t style;
215215
lv_obj_t* nameLabel = nullptr;

0 commit comments

Comments
 (0)