Merge pull request #1039 from NeroBurner/datetime_const_and_analog_const_ref
Datetime const and analog const ref
This commit is contained in:
commit
76b7436dfb
3 changed files with 5 additions and 5 deletions
|
@ -108,11 +108,11 @@ void DateTime::UpdateTime(uint32_t systickCounter) {
|
|||
}
|
||||
}
|
||||
|
||||
const char* DateTime::MonthShortToString() {
|
||||
const char* DateTime::MonthShortToString() const {
|
||||
return MonthsString[static_cast<uint8_t>(month)];
|
||||
}
|
||||
|
||||
const char* DateTime::DayOfWeekShortToString() {
|
||||
const char* DateTime::DayOfWeekShortToString() const {
|
||||
return DaysStringShort[static_cast<uint8_t>(dayOfWeek)];
|
||||
}
|
||||
|
||||
|
|
|
@ -61,8 +61,8 @@ namespace Pinetime {
|
|||
return second;
|
||||
}
|
||||
|
||||
const char* MonthShortToString();
|
||||
const char* DayOfWeekShortToString();
|
||||
const char* MonthShortToString() const;
|
||||
const char* DayOfWeekShortToString() const;
|
||||
static const char* MonthShortToStringLow(Months month);
|
||||
|
||||
std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> CurrentDateTime() const {
|
||||
|
|
|
@ -74,7 +74,7 @@ namespace Pinetime {
|
|||
lv_obj_t* batteryIcon;
|
||||
lv_obj_t* notificationIcon;
|
||||
|
||||
Controllers::DateTime& dateTimeController;
|
||||
const Controllers::DateTime& dateTimeController;
|
||||
Controllers::Battery& batteryController;
|
||||
Controllers::Ble& bleController;
|
||||
Controllers::NotificationManager& notificationManager;
|
||||
|
|
Loading…
Reference in a new issue