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:
Victor Kareh
2024-02-12 15:59:40 -05:00
committed by JF
parent b0a0afdd4b
commit 5d971690cb
3 changed files with 5 additions and 4 deletions

View File

@@ -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);
}
}