Display only timer name if defined (#5684)

This commit is contained in:
3djc
2018-02-11 23:23:19 +01:00
committed by Andre Bernet
parent 51db756385
commit 4cf257b997
+3 -1
View File
@@ -69,7 +69,9 @@ void TimerWidget::refresh()
if (ZLEN(timerData.name) > 0) { if (ZLEN(timerData.name) > 0) {
lcdDrawSizedText(zone.x + 78, zone.y + 20, timerData.name, LEN_TIMER_NAME, ZCHAR | SMLSIZE | TEXT_COLOR); 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 { else {
if (timerState.val < 0 && timerState.val % 2) { if (timerState.val < 0 && timerState.val % 2) {