DateTimeController: Make DayOfWeekShortToStringLow static
This allows it to be used outside of the current datetime context and makes it consistent with the MonthShortToStringLow function.
This commit is contained in:
parent
b0a0afdd4b
commit
5d971690cb
3 changed files with 5 additions and 4 deletions
|
|
@ -426,7 +426,8 @@ void WatchFaceInfineat::Refresh() {
|
|||
currentDate = std::chrono::time_point_cast<days>(currentDateTime.Get());
|
||||
if (currentDate.IsUpdated()) {
|
||||
uint8_t day = dateTimeController.Day();
|
||||
lv_label_set_text_fmt(labelDate, "%s %02d", dateTimeController.DayOfWeekShortToStringLow(), day);
|
||||
Controllers::DateTime::Days dayOfWeek = dateTimeController.DayOfWeek();
|
||||
lv_label_set_text_fmt(labelDate, "%s %02d", dateTimeController.DayOfWeekShortToStringLow(dayOfWeek), day);
|
||||
lv_obj_realign(labelDate);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue