Skip to content

Commit 1bb442d

Browse files
committed
Fix for extra chars when displaying the timer start/stop times
1 parent c59fd8f commit 1bb442d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lcd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,9 +665,9 @@ void LcdTask::displayInfoEventTime(const char *name, Scheduler::EventInstance &e
665665
hour = 12;
666666
}
667667

668-
sprintf(temp, "%s %d:%02d %s", name, hour, min, pm ? "PM" : "AM");
668+
sprintf(temp, "%d:%02d %s", hour, min, pm ? "PM" : "AM");
669669
} else {
670-
sprintf(temp, "%s --:--", name);
670+
sprintf(temp, "--:--");
671671
}
672672
displayNameValue(1, name, temp);
673673
}

0 commit comments

Comments
 (0)