Skip to content

Commit 60b6b4e

Browse files
Update src/displayapp/screens/WatchFaceTerminal.cpp
Co-authored-by: NeroBurner <pyro4hell@gmail.com>
1 parent 6959d8c commit 60b6b4e

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/displayapp/screens/WatchFaceTerminal.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,7 @@ void WatchFaceTerminal::Refresh() {
178178
}
179179

180180
if ((year != currentYear) || (month != currentMonth) || (dayOfWeek != currentDayOfWeek) || (day != currentDay)) {
181-
182-
char dateStr[38];
183-
sprintf(dateStr, "[DATE]#007fff %04d.%02d.%02d#", short(year), char(month), char(day));
184-
lv_label_set_text(label_date, dateStr);
181+
lv_label_set_text_fmt(label_date, "[DATE]#007fff %04d.%02d.%02d#", short(year), char(month), char(day));
185182

186183
currentYear = year;
187184
currentMonth = month;

0 commit comments

Comments
 (0)