From 4cf257b997bcb9f9b4fdd307c59f60d6e1ac0c27 Mon Sep 17 00:00:00 2001 From: 3djc Date: Sun, 11 Feb 2018 23:23:19 +0100 Subject: [PATCH] Display only timer name if defined (#5684) --- radio/src/gui/480x272/widgets/timer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/radio/src/gui/480x272/widgets/timer.cpp b/radio/src/gui/480x272/widgets/timer.cpp index a1dd13a62..1293a8701 100644 --- a/radio/src/gui/480x272/widgets/timer.cpp +++ b/radio/src/gui/480x272/widgets/timer.cpp @@ -69,7 +69,9 @@ void TimerWidget::refresh() if (ZLEN(timerData.name) > 0) { lcdDrawSizedText(zone.x + 78, zone.y + 20, timerData.name, LEN_TIMER_NAME, ZCHAR | SMLSIZE | TEXT_COLOR); } - drawStringWithIndex(zone.x + 137, zone.y + 17, "TMR", index + 1, SMLSIZE | TEXT_COLOR); + else { + drawStringWithIndex(zone.x + 137, zone.y + 17, "TMR", index + 1, SMLSIZE | TEXT_COLOR); + } } else { if (timerState.val < 0 && timerState.val % 2) {