This commit is contained in:
parent
f87d626925
commit
52478ec602
1 changed files with 5 additions and 2 deletions
|
@ -25,10 +25,13 @@ void WatchFacePages::Clock::DrawPage(bool partialRefresh)
|
||||||
m_display.fillScreen(GxEPD_WHITE);
|
m_display.fillScreen(GxEPD_WHITE);
|
||||||
DrawBatteryIcon();
|
DrawBatteryIcon();
|
||||||
|
|
||||||
tmElements_t currentTime;
|
// Get current time and offset by timezone
|
||||||
m_features.rtc.Get(currentTime);
|
tmElements_t currentTime;
|
||||||
|
m_features.rtc.Get(currentTime);
|
||||||
int tzOffset = m_features.storage.GetTzOffset();
|
int tzOffset = m_features.storage.GetTzOffset();
|
||||||
m_features.rtc.OffsetTime(currentTime, tzOffset);
|
m_features.rtc.OffsetTime(currentTime, tzOffset);
|
||||||
|
|
||||||
|
|
||||||
SevenSegment sevenSegment(30, 60, 6, 5, 5);
|
SevenSegment sevenSegment(30, 60, 6, 5, 5);
|
||||||
|
|
||||||
if (currentTime.Hour < 10) {
|
if (currentTime.Hour < 10) {
|
||||||
|
|
Loading…
Reference in a new issue